Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1628641ybb; Thu, 2 Apr 2020 04:36:07 -0700 (PDT) X-Google-Smtp-Source: APiQypKra49pK0YhC+n7plBzUh6cIvLQsxygKkBqpzD30UrMhy/mvU/yEIuXlHq48969Uvp1md9f X-Received: by 2002:a05:6830:1610:: with SMTP id g16mr1897587otr.358.1585827366958; Thu, 02 Apr 2020 04:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585827366; cv=none; d=google.com; s=arc-20160816; b=HdeucKafXT6gNdvDEzJZQJ9Co6utgUjc/zXA9RDSsySBNmcUgE1C6wlJ8gMUrP4+F7 bwLmdxeW8PGEk2z/r1mu3prIZFXdjZ69vqPWtpMea06w+Vt6Xt0Sozq7DQNAf5Vadkax TblmnAW0VDdABCqNIsXm5MGTgtvMTD7idDE5ow7ativUJhsYwj0viIft+xaMDtIxeppo AHb7WBoJ3ZroIVWSpUnG/FcbAIsQOQdk/gRetlXrLfhQldlhKQBnKm4KGKOIQc5LkDRA aw3Nak6Xm/uxS5fAOKFQEj0KfDGS/MXnwqCE2cWz7ejQLex9LtrhGiwNw+dQv35rRsr6 d3LA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=61nE4MPWkZ4jwbTGaekfcUCJ3CR3v7ZT+sx2TGWDn1I=; b=q5knsb3mhJgOg96a0cv2FCCEHCmnvdDhH4q0fwrAvwJB+Gti+jRiBqi1qdUuPNQi0G wNmm5Td1ilRYs3xbyQtqPhGVtjaapMpSoRdSXBDo+6IKPMzJ67DmG1OdmA2VV8U0P08Q Ls2zbmXf2iP3uln0l8xajdKo2N+bpz8RwE3AAtGHvG2vdpHUftvrxKPaKK4C8MaaCrOJ K+k/J1B+M/szMgZ5IVc98H+SthFjQO/aX33tJLe94mg773rCLgAoB5eHeCKKPhGfdM9D f01q3mZd81nFAHA7l9xj2VvYZ6NiT/a+T4V488jS2wGlrKMx+MFZ2vOs1NUpCLbmZnJf EdLQ== 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 i15si2182898ots.121.2020.04.02.04.35.54; Thu, 02 Apr 2020 04:36:06 -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 S2388100AbgDBLe1 (ORCPT + 99 others); Thu, 2 Apr 2020 07:34:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:53938 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388001AbgDBLe0 (ORCPT ); Thu, 2 Apr 2020 07:34:26 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2EE3DAAB8; Thu, 2 Apr 2020 11:34:25 +0000 (UTC) Subject: Re: [PATCH] bcache: remove redundant variables i and n To: Colin King Cc: Kent Overstreet , linux-bcache@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200402111903.514146-1-colin.king@canonical.com> From: Coly Li Organization: SUSE Labs Message-ID: Date: Thu, 2 Apr 2020 19:34:09 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200402111903.514146-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/4/2 7:19 下午, Colin King wrote: > From: Colin Ian King > > Variables i and n are being assigned but are never used. They are > redundant and can be removed. > Hi Colin, > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Thanks, I will submit this patch in Linux 5.7-rc series. > --- > drivers/md/bcache/btree.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c > index 72856e5f23a3..114d0d73d909 100644 > --- a/drivers/md/bcache/btree.c > +++ b/drivers/md/bcache/btree.c > @@ -1907,10 +1907,8 @@ 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; > > k = p = NULL; > - i = n = 0; > cur_idx = prev_idx = 0; > ret = 0; > > -- Coly Li