diff options
| author | Laurent Vivier | 2018-03-23 15:32:02 +0100 |
|---|---|---|
| committer | Michael Tokarev | 2018-05-20 07:48:13 +0200 |
| commit | 4a4ff4c58fd750cde01c8b15d30d038cefc90a42 (patch) | |
| tree | 663380d3786b808f7829236f2d085b437d4edb71 /block | |
| parent | trivial: Do not include pci.h if it is not necessary (diff) | |
| download | qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.gz qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.xz qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.zip | |
Remove unnecessary variables for function return value
Re-run Coccinelle script scripts/coccinelle/return_directly.cocci
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
ppc part
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'block')
| -rw-r--r-- | block/quorum.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/block/quorum.c b/block/quorum.c index e448d7e384..b6476c405a 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -613,7 +613,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++) { @@ -648,9 +648,7 @@ static int read_quorum_children(QuorumAIOCB *acb) qemu_coroutine_yield(); } - ret = acb->vote_ret; - - return ret; + return acb->vote_ret; } static int read_fifo_child(QuorumAIOCB *acb) |
