Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1626128pxb; Mon, 12 Apr 2021 02:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMwq9e/wFQZwIfKLGCQjE72gu3wwotAGTv0ZaT9nh9L2nOp3txoRm16hDI9PpToOqt2eyj X-Received: by 2002:a17:90a:70cf:: with SMTP id a15mr27755170pjm.7.1618220793698; Mon, 12 Apr 2021 02:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618220793; cv=none; d=google.com; s=arc-20160816; b=tCGsJUOYB7KtKwpfoxemwhEBG7J9jb4+BUKGMPVbim4J5SyK0Frv50GNDYHTFFAtow EEGIPKl+ozki6ykc+AeqV9Cld1jKaAVWoQ+hzViAuAKzb96xtyegBCXGEChjM3njSval QYsRtobDs2GGYMR7ZIOy7HoYwRZoVoF7zjFoBeN9PpebtNCma/WxsyaVeQIPMh36/ZYI wLaNpu3TVYqK1cDgNjg7YeougqWCV0O2rqBlSSzjEZRDPRndZ2UTTjV8p4hzscWCe6Mx YIjgUVpHPjlWO0Eyo413dFNLzaIbWaFDYjvNT0BabwSuy5sbUh5b6xw9SGf6bKzmKAey XILA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+Y2B4vh2ikvc0Nc2iBYe5WexzsVwNn3Hyye1dPFqucI=; b=Cp1PTbvu+oAUc3kCteJVb9KWLPSI3n0IQSQdqqIcJQqdO7rzN03G2N9jNpPn26MnBy 8f0yKyjdo2PKcd2WhwIOVq8b4vKHsAlBOILAERs9omts3Rqp7BaYS6wfBYxFSRpnryqm aXwGVakonfug8SiQp+0K1SUn0rIyq3aNAU/qVwdbMl/97ukAQPT4R1cehuy8ngALnLpq lLqd4m1HE+RyPrX27XGzc2Spv7vnPOtjFu081fLuMwAtkpM1VuIdw40KztknYMokhBLT 9hkhUfpwgNDLk2ElVW5gWnOL/B8O2fnzzEO70Y70yph4RtJxvZhQjd2Ie9Fkm9PIJ7At TQCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si387608plj.366.2021.04.12.02.46.22; Mon, 12 Apr 2021 02:46:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240708AbhDLJo4 (ORCPT + 99 others); Mon, 12 Apr 2021 05:44:56 -0400 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:57308 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239983AbhDLJVY (ORCPT ); Mon, 12 Apr 2021 05:21:24 -0400 Received: from wanjb-KLV-WX9.. (unknown [123.131.141.119]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id 1E4F94001AC; Mon, 12 Apr 2021 17:21:03 +0800 (CST) From: Wan Jiabing To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Colin Ian King , Wan Jiabing , linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: [PATCH] perf: bench: Remove unneeded variable Date: Mon, 12 Apr 2021 17:20:48 +0800 Message-Id: <20210412092054.28117-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQxhCQ1YdTUIfHR8fTU9OS0pVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Oi46Lzo5Aj8LSx8iMSsoFzMP OBpPFBhVSlVKTUpDSUpCSU1PSEpCVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlK SUhVSkhKVUpPSlVKSkJZV1kIAVlBSUlNTjcG X-HM-Tid: 0a78c5626628d991kuws1e4f94001ac Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix coccicheck warning: tools/perf/bench/find-bit-bench.c:123:5-8: Unneeded variable: "err". Return "0" on line 134 Signed-off-by: Wan Jiabing --- tools/perf/bench/find-bit-bench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/bench/find-bit-bench.c b/tools/perf/bench/find-bit-bench.c index 73b5bcc5946a..7e748a56a8ba 100644 --- a/tools/perf/bench/find-bit-bench.c +++ b/tools/perf/bench/find-bit-bench.c @@ -120,7 +120,7 @@ static int do_for_each_set_bit(unsigned int num_bits) int bench_mem_find_bit(int argc, const char **argv) { - int err = 0, i; + int i; argc = parse_options(argc, argv, options, bench_usage, 0); if (argc) { @@ -131,5 +131,5 @@ int bench_mem_find_bit(int argc, const char **argv) for (i = 1; i <= 2048; i <<= 1) do_for_each_set_bit(i); - return err; + return 0; } -- 2.30.2