Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4206070ybz; Mon, 20 Apr 2020 18:13:04 -0700 (PDT) X-Google-Smtp-Source: APiQypI/zAllehfnDRtHBwNP2U30WYpWH/ny0vLc218/95/U0/n5dIdjqbzR5HCmfldBXliCvOO5 X-Received: by 2002:a50:a9c5:: with SMTP id n63mr16827045edc.312.1587431584040; Mon, 20 Apr 2020 18:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587431584; cv=none; d=google.com; s=arc-20160816; b=KANR6BTFuVCVYWBqcVhnVrm+rlh9R1g4fDkBILohVIoW3SRLdKVBqMABFnNjPiibCl 1rfyEsaKKeQyB7SxkdOopRftYKxljHLuovQ+i92XGgDutcdgvPO5YxomMYeNlaYRKMEn G0mdtW9H3z3hrUVFlogiGmw8Wqe+8T/8jdym422CQWkjLw9uMNqiBO3/3GhwutnANd7M 0cRuKzna1XhQQUwje3Bi9QGI6EaM5TaDz1h2TLDDw5gmfkTXaZsYS8w8AUYQpVfDd8dB 1fawqUMQOCMtlakD+8XcOwluNgIeJJ/SfI0UYVc4d6zjGKpLyVvyRwEFQYT6lANFfTOV 17KQ== 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:references:cc:to:from:subject; bh=4WseZrNXrKLFnu/+lsYyqr9fn/8GaJM7RMOeGcxmD0M=; b=j/trdj+KM6nUOOktK6bBWSdNq6NlqGGbWZEQTrKS7HC72A5gwDfStSKzTGfTCHjztl Fx6tOC+05AQUZThcvb+Z4KOd3vCAgO2wCYlJBn62NC8z11bghRi88fA6n0CRBMm9tO83 g5VaA46rZ2Cc7EdJJGbu7QT5JgTsXyYrxndOGv4g4dVq6PMzQWFrMLZExHhXisdTXjZg iPdmq6TdyZhC7EhM9yYXdxrAjZQx2yhnze+eIW9mCFrTzLMw8ZTGnLdOZCdg2tqAmxPn aObbeBTxMiMOo2PR5S3+zknKJbBuH/79mPqwreBQV4hviAH1hrg+IKzBD4EuMwDi4+1s 707Q== 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 o15si561770eju.289.2020.04.20.18.12.38; Mon, 20 Apr 2020 18:13:04 -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 S1726161AbgDUBLg (ORCPT + 99 others); Mon, 20 Apr 2020 21:11:36 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:57860 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725958AbgDUBLg (ORCPT ); Mon, 20 Apr 2020 21:11:36 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2ADD185897AB7DAC0110; Tue, 21 Apr 2020 09:11:33 +0800 (CST) Received: from [127.0.0.1] (10.166.215.235) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Tue, 21 Apr 2020 09:11:23 +0800 Subject: Re: [PATCH] md/persistent-data: exit_ro_spine func return void From: Zhiqiang Liu To: , , , "linux-kernel@vger.kernel.org" CC: linfeilong , Mingfangsen , "wubo (T)" , Yanxiaodan References: Message-ID: <7b6493a0-685f-5f39-b948-a27716d48cc5@huawei.com> Date: Tue, 21 Apr 2020 09:11:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.166.215.235] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Friendly ping.. On 2020/4/15 19:57, Zhiqiang Liu wrote: > From: Zhiqiang Liu > > In commit 4c7da06f5a78 ("dm persistent data: eliminate unnecessary return values"), > r value in exit_ro_spine will not changes, so exit_ro_spine donot need > to return values. > > Signed-off-by: Zhiqiang Liu > --- > drivers/md/persistent-data/dm-btree-internal.h | 2 +- > drivers/md/persistent-data/dm-btree-spine.c | 6 ++---- > 2 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/md/persistent-data/dm-btree-internal.h b/drivers/md/persistent-data/dm-btree-internal.h > index a240990a7f33..55a4096f1334 100644 > --- a/drivers/md/persistent-data/dm-btree-internal.h > +++ b/drivers/md/persistent-data/dm-btree-internal.h > @@ -68,7 +68,7 @@ struct ro_spine { > }; > > void init_ro_spine(struct ro_spine *s, struct dm_btree_info *info); > -int exit_ro_spine(struct ro_spine *s); > +void exit_ro_spine(struct ro_spine *s); > int ro_step(struct ro_spine *s, dm_block_t new_child); > void ro_pop(struct ro_spine *s); > struct btree_node *ro_node(struct ro_spine *s); > diff --git a/drivers/md/persistent-data/dm-btree-spine.c b/drivers/md/persistent-data/dm-btree-spine.c > index b27b8091a1ca..e03cb9e48773 100644 > --- a/drivers/md/persistent-data/dm-btree-spine.c > +++ b/drivers/md/persistent-data/dm-btree-spine.c > @@ -132,15 +132,13 @@ void init_ro_spine(struct ro_spine *s, struct dm_btree_info *info) > s->nodes[1] = NULL; > } > > -int exit_ro_spine(struct ro_spine *s) > +void exit_ro_spine(struct ro_spine *s) > { > - int r = 0, i; > + int i; > > for (i = 0; i < s->count; i++) { > unlock_block(s->info, s->nodes[i]); > } > - > - return r; > } > > int ro_step(struct ro_spine *s, dm_block_t new_child) >