diff options
author | Thomas Huth | 2017-11-02 11:10:05 +0100 |
---|---|---|
committer | Eduardo Habkost | 2018-01-19 14:18:51 +0100 |
commit | 58346214d03ffcd774e86e3ce72b4196769eb710 (patch) | |
tree | 43a25d91cf3cd170e9d603538d65f04a7fb56c93 /exec.c | |
parent | q35: Allow only supported dynamic sysbus devices (diff) | |
download | qemu-58346214d03ffcd774e86e3ce72b4196769eb710.tar.gz qemu-58346214d03ffcd774e86e3ce72b4196769eb710.tar.xz qemu-58346214d03ffcd774e86e3ce72b4196769eb710.zip |
qdev_monitor: Simplify error handling in qdev_device_add()
Instead of doing the clean-ups on errors multiple times, introduce
a jump label at the end of the function that can be used by all
error paths that need this cleanup.
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1509617407-21191-2-git-send-email-thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions