[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 4/4] Remove unnecessary variables for function ret
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-ppc] [PATCH 4/4] Remove unnecessary variables for function return value |
Date: |
Fri, 23 Mar 2018 11:44:49 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
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 <address@hidden>
Berto
Re: [Qemu-ppc] [Qemu-arm] [PATCH 4/4] Remove unnecessary variables for function return value, Philippe Mathieu-Daudé, 2018/03/22
Re: [Qemu-ppc] [PATCH 4/4] Remove unnecessary variables for function return value, David Gibson, 2018/03/22
Re: [Qemu-ppc] [PATCH 4/4] Remove unnecessary variables for function return value,
Alberto Garcia <=
Re: [Qemu-ppc] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle, Eric Blake, 2018/03/22
Re: [Qemu-ppc] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle, Eric Blake, 2018/03/22
Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle, no-reply, 2018/03/22
Re: [Qemu-ppc] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle, Michael Tokarev, 2018/03/23