Received: from eggs.gnu.org ([2001:4830:134:3::10]:60243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezKBw-00083U-SF for qemu-devel@nongnu.org; Fri, 23 Mar 2018 06:45:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezKBt-0006XZ-Pc for qemu-devel@nongnu.org; Fri, 23 Mar 2018 06:45:00 -0400 From: Alberto Garcia In-Reply-To: <20180322161226.29796-5-lvivier@redhat.com> References: <20180322161226.29796-1-lvivier@redhat.com> <20180322161226.29796-5-lvivier@redhat.com> Date: Fri, 23 Mar 2018 11:44:49 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 4/4] Remove unnecessary variables for function return value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org Cc: Peter Crosthwaite , =?utf-8?Q?Daniel_P=2E?= =?utf-8?Q?_Berrang=C3=A9?= , "Dr. David Alan Gilbert" , Paolo Bonzini , David Gibson , Kevin Wolf , Richard Henderson , qemu-arm@nongnu.org, Eric Blake , Jason Wang , Max Reitz , Fam Zheng , qemu-trivial@nongnu.org, Alexander Graf , qemu-ppc@nongnu.org, Peter Maydell , qemu-block@nongnu.org, Igor Mitsyanko , Yongbok Kim , "Michael S. Tsirkin" , Aurelien Jarno , Eduardo Habkost , Max Filippov , Markus Armbruster On Thu 22 Mar 2018 05:12:26 PM CET, Laurent Vivier wrote: > diff --git a/block/quorum.c b/block/quorum.c > index 14333c18aa..304442ef65 100644 > --- a/block/quorum.c > +++ b/block/quorum.c > @@ -608,7 +608,7 @@ static void read_quorum_children_entry(void *opaque) > static int read_quorum_children(QuorumAIOCB *acb) > { > BDRVQuorumState *s = acb->bs->opaque; > - int i, ret; > + int i; > > acb->children_read = s->num_children; > for (i = 0; i < s->num_children; i++) { > @@ -643,9 +643,7 @@ static int read_quorum_children(QuorumAIOCB *acb) > qemu_coroutine_yield(); > } > > - ret = acb->vote_ret; > - > - return ret; > + return acb->vote_ret; > } The Quorum part, Reviewed-by: Alberto Garcia Berto