aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/netduino2.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-12-03 18:23:09 +0100
committerKevin Wolf <kwolf@redhat.com>2020-12-11 17:52:40 +0100
commitd9dbf25f9624aac43e4357019bed4422f0b3368d (patch)
tree855d125b604b69af9fa9a1c036644be8b73f3634 /hw/arm/netduino2.c
parent8b1170012b1de6649c66ac1887f4df7e312abf3b (diff)
downloadqemu-d9dbf25f9624aac43e4357019bed4422f0b3368d.zip
qemu-d9dbf25f9624aac43e4357019bed4422f0b3368d.tar.gz
qemu-d9dbf25f9624aac43e4357019bed4422f0b3368d.tar.bz2
block: Simplify qmp_block_resize() error paths
The only thing that happens after the 'out:' label is blk_unref(blk). However, blk = NULL in all of the error cases, so instead of jumping to 'out:', we can just return directly. Cc: qemu-stable@nongnu.org Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20201203172311.68232-2-kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/arm/netduino2.c')
0 files changed, 0 insertions, 0 deletions