Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1092428ybt; Wed, 8 Jul 2020 21:10:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo3Nk9TOlrjA0XD2RZ6X8GqyvqNc9p0DxufPtQnQVNR6oJnaKgP8bD0l9A8m3P3iNvJsmR X-Received: by 2002:a17:906:c40d:: with SMTP id u13mr52840087ejz.519.1594267854370; Wed, 08 Jul 2020 21:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594267854; cv=none; d=google.com; s=arc-20160816; b=MZ5zlvriiCy9BTtcZ9RYyIbifj0/JqLfa0n5f5DlsMVvCA4upPBPue5SJil6MFOy/S j6RyMueP5q/OmmIw2fWmlCZB7wVRVGbR0ULIZDMwNsPkp/q6QFWzWREEFDj3SarnsSM+ bS/iWAqpiiDrpMygrk/Sll+4H4rR+sr64dW28hHldSf4+O7y0qQ/CxCxt2XcQ3hbQ5An bDIsnr2VRsjm53icEhnT4a6He4QepgqoMqgyUgGbJ9Zl4BtEzyd1Tm+fS94DHdMK0oWn lhvoxsmqBdIWJaGfWm13ZlFvlmElmsljzE+teZvuWaV8ajKW22RdZmosSxxpx59fnG2y /bxA== 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:autocrypt:from:references:cc:to:subject; bh=sje2HuINXCqKuqRr6FKPrPRbAXqGtPfpkyYXwQRtCGg=; b=aQeRhO22zVbiei5DEZaayGtiX8krS/21NynY/rAyZNvvQG+1mK7VKvO8UFQocAmyRj E6Npd30L/9hbWICVSSx+dCKRUHMoGUG0347h1P7ba1NbGLJ3XdYtgMJZtqX7yUpopGq+ QeDrMdl5oMOqBYRd9wS0Bs6F+YGHUrBaDchSFEu9ExD9NchpmkM4Qf27VqFvpKb1bIBA 8vgTa3ZN9mekkPbkGQ75SlWETU+Icg+iYq7DKh/G5OgNbLKf5wnR68QUj51kcpT7OzAL CFmVoAAWQ84ASy4sGeyiWgKr5EnSrbNhfW7hCVedDiJbN0f/RZSEcfEMzCjUUJKCJ3yb U/Tw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si1164292edm.441.2020.07.08.21.10.31; Wed, 08 Jul 2020 21:10:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726251AbgGIEHq (ORCPT + 99 others); Thu, 9 Jul 2020 00:07:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:58618 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgGIEHp (ORCPT ); Thu, 9 Jul 2020 00:07:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 665ACAEA8; Thu, 9 Jul 2020 04:07:43 +0000 (UTC) Subject: Re: [PATCH] bcache: writeback: Remove unneeded variable ret To: Xu Wang Cc: kent.overstreet@gmail.com, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200709033904.27391-1-vulab@iscas.ac.cn> From: Coly Li Autocrypt: addr=colyli@suse.de; keydata= mQINBFYX6S8BEAC9VSamb2aiMTQREFXK4K/W7nGnAinca7MRuFUD4JqWMJ9FakNRd/E0v30F qvZ2YWpidPjaIxHwu3u9tmLKqS+2vnP0k7PRHXBYbtZEM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AAmAhsMFiEE6j5FL/T5SGCN6PrQxzkHk2t9+PwFAlxHziAFCRj7 5/EACgkQxzkHk2t9+PxgfA//cH5R1DvpJPwraTAl24SUcG9EWe+NXyqveApe05nk15zEuxxd e4zFEjo+xYZilSveLqYHrm/amvQhsQ6JLU+8N60DZHVcXbw1Eb8CEjM5oXdbcJpXh1/1BEwl 4phsQMkxOTns51bGDhTQkv4lsZKvNByB9NiiMkT43EOx14rjkhHw3rnqoI7ogu8OO7XWfKcL CbchjJ8t3c2XK1MUe056yPpNAT2XPNF2EEBPG2Y2F4vLgEbPv1EtpGUS1+JvmK3APxjXUl5z 6xrxCQDWM5AAtGfM/IswVjbZYSJYyH4BQKrShzMb0rWUjkpXvvjsjt8rEXpZEYJgX9jvCoxt oqjCKiVLpwje9WkEe9O9VxljmPvxAhVqJjX62S+TGp93iD+mvpCoHo3+CcvyRcilz+Ko8lfO hS9tYT0HDUiDLvpUyH1AR2xW9RGDevGfwGTpF0K6cLouqyZNdhlmNciX48tFUGjakRFsxRmX K0Jx4CEZubakJe+894sX6pvNFiI7qUUdB882i5GR3v9ijVPhaMr8oGuJ3kvwBIA8lvRBGVGn 9xvzkQ8Prpbqh30I4NMp8MjFdkwCN6znBKPHdjNTwE5PRZH0S9J0o67IEIvHfH0eAWAsgpTz +jwc7VKH7vkvgscUhq/v1/PEWCAqh9UHy7R/jiUxwzw/288OpgO+i+2l11Y= Message-ID: Date: Thu, 9 Jul 2020 12:07:37 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200709033904.27391-1-vulab@iscas.ac.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/9 11:39, Xu Wang wrote: > Remove unneeded variable ret i. > I see 'i' is removed, where is 'ret' ? Thanks. Coly Li > Signed-off-by: Xu Wang > --- > drivers/md/bcache/writeback.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c > index 1cf1e5016cb9..71801c086b82 100644 > --- a/drivers/md/bcache/writeback.c > +++ b/drivers/md/bcache/writeback.c > @@ -825,10 +825,8 @@ static int bch_dirty_init_thread(void *arg) > struct btree_iter iter; > struct bkey *k, *p; > int cur_idx, prev_idx, skip_nr; > - int i; > > k = p = NULL; > - i = 0; > cur_idx = prev_idx = 0; > > bch_btree_iter_init(&c->root->keys, &iter, NULL); >