diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2020-12-03 18:23:09 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2020-12-11 17:52:40 +0100 |
| commit | d9dbf25f9624aac43e4357019bed4422f0b3368d (patch) | |
| tree | 855d125b604b69af9fa9a1c036644be8b73f3634 /hw/core/qdev-properties.c | |
| parent | 8b1170012b1de6649c66ac1887f4df7e312abf3b (diff) | |
| download | focaccia-qemu-d9dbf25f9624aac43e4357019bed4422f0b3368d.tar.gz focaccia-qemu-d9dbf25f9624aac43e4357019bed4422f0b3368d.zip | |
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/core/qdev-properties.c')
0 files changed, 0 insertions, 0 deletions