Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2875377ybb; Sun, 5 Apr 2020 19:32:17 -0700 (PDT) X-Google-Smtp-Source: APiQypLKXiMHHmyaNSwO2jmhFdM7syGbd9kB3rUsRVzaZlmFvQdSuK49s55ZZ2otMpsXH81H+Nin X-Received: by 2002:a9d:5191:: with SMTP id y17mr16261365otg.267.1586140337469; Sun, 05 Apr 2020 19:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586140337; cv=none; d=google.com; s=arc-20160816; b=klL0gLre0THyXnJdEwyWDFUCmGskZXIdcRNxMYUngBK/z2HY2yQ+5H6qicetMP5/vx 5mHifB1in4F9Cefj7lISb9wP6TPpBzbFVWJDnLnVX8vf3M358B8WRfKojzIs+fgpKYpx SPuBCvm8zusooRo1kh1OAEcuQYkXFAUfA+JHc57hKGoHzcdzgRkx2tFVLk4qDSJc42ba jUQoUby6e2cDhOmH3OLF9A4WFoYwxhvPLsTCgVgudVQpSfggt2IeftyaQ1oWYqQx7Lgn YcCCqPUx89PHKLn7uq/Bp+B9OX3NaasphEquHCCDSqMPIUzVcNCe7ZLOYSJiMla3PVMG p0hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=5TCWiyZfS2G17bG2Mjl60tsKtnxfHVUwODU2hgfPMm8=; b=dxDBaIpHX0LsOUKn6Nsiv8psUbfRaJBONT+EQFidLArSms0zNboH6JI6UC2XNAeSwm 2r5vBq2ex7oV+PReW0b3TwERRgmU8Ix9jCmq5xrbqJ4n98CEKsDECG+EUkLONxeL0Lle suHMv8FtRcJIIY2l4IFje/3DpQz59/VYgPEN9P4O5fZtY06ILCl4/+QnWR5yQepQB8/H 47g93xPBPWvnNJKVjN1YwaVC1+6DdQbDZoQzcbLpK/5glzgpfQfasYWLpiTtS9k3UwN1 HxWdoI4WRr6UHKbIFCkxh84XOhvgzZG1RTb08qARfoQB3MGuv4mx1Yrl1qqxpwR90574 mkgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si7444939oth.204.2020.04.05.19.31.34; Sun, 05 Apr 2020 19:32:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726509AbgDFCZS (ORCPT + 99 others); Sun, 5 Apr 2020 22:25:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12614 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726408AbgDFCZS (ORCPT ); Sun, 5 Apr 2020 22:25:18 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 92FEE7A9492A172FF0F7; Mon, 6 Apr 2020 10:25:08 +0800 (CST) Received: from huawei.com (10.175.112.70) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 6 Apr 2020 10:25:02 +0800 From: Wang Hai To: , CC: , , Subject: [PATCH] bcache: remove set but not used variable 'i' Date: Tue, 7 Apr 2020 07:36:47 -0400 Message-ID: <1586259407-23673-1-git-send-email-wanghai38@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.112.70] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/md/bcache/btree.c: In function bch_btree_check_thread: drivers/md/bcache/btree.c:1910:6: warning: variable ā€˜iā€™ set but not used [-Wunused-but-set-variable] It's not used since commit 8e7102273f59 ("bcache: make bch_btree_check() to be multithreaded"), so remove it. Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/md/bcache/btree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c index 72856e5..b962313 100644 --- a/drivers/md/bcache/btree.c +++ b/drivers/md/bcache/btree.c @@ -1907,10 +1907,10 @@ static int bch_btree_check_thread(void *arg) struct btree_iter iter; struct bkey *k, *p; int cur_idx, prev_idx, skip_nr; - int i, n; + int n; k = p = NULL; - i = n = 0; + n = 0; cur_idx = prev_idx = 0; ret = 0; -- 1.8.3.1