From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48ACEC7EE23 for ; Tue, 30 May 2023 23:11:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233755AbjE3XLK (ORCPT ); Tue, 30 May 2023 19:11:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233543AbjE3XLH (ORCPT ); Tue, 30 May 2023 19:11:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9A98EC for ; Tue, 30 May 2023 16:11:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 58968634F7 for ; Tue, 30 May 2023 23:11:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9920DC433EF; Tue, 30 May 2023 23:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685488260; bh=X/pbSDuZtQNTgQquV+aA9wODPdYEn492ZnYb6itX4Fw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LJ8dRp6k82rMbU7wmXdSH6mnbM+xGTQznN5BwlBkgyP+mapBR8z5hetXSBAksidLX SICyMRmHBhYh2Vxzye/OSStHhxaLzhuCK8qv2VaeyTWlhJZcLbTrJFIN27+MjsPhsX 6q49S7EpHo4EeuVRUxp07OrPM/IBOggm/uXUKnhcWNpvYWupbRTUm6AJ4IA6vH6Y+3 osoPJ2+CxTeDEp6H7DJQOuU2DqX1US8ncfc3dLjVO+FuD7KAiy5eA43Lzv7lOoqn1g 5uq7K9Xqi50ij0NpQJrnC2trIO/MYgHCCdQ8mqJzRFp7Qe5RXtvlBiY1s814fnmiup 9ZCmfizn3ay7Q== Date: Tue, 30 May 2023 16:10:58 -0700 From: Josh Poimboeuf To: Lu Hongfei Cc: Peter Zijlstra , open list , opensource.kernel@vivo.com Subject: Re: [PATCH] tools: Remove unnecessary variables Message-ID: <20230530231058.6mosjz7pl7nwcswr@treble> References: <20230530075649.21661-1-luhongfei@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230530075649.21661-1-luhongfei@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30, 2023 at 03:56:49PM +0800, Lu Hongfei wrote: > There are several places where warnings variables are not needed, > remove them and directly return 0. > > Signed-off-by: Lu Hongfei Acked-by: Josh Poimboeuf -- Josh