aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2022-11-21 09:50:46 +0100
committerMarkus Armbruster <armbru@redhat.com>2022-12-14 16:19:35 +0100
commit740d6c4eba8bb44ea00550ccc97a4c49945ecc3c (patch)
tree944dd4ac26340610b52c35d548c7d2bc035b4ce6 /ui
parent6c37ebf3301ca449ebe449138b86e55762503250 (diff)
downloadqemu-740d6c4eba8bb44ea00550ccc97a4c49945ecc3c.zip
qemu-740d6c4eba8bb44ea00550ccc97a4c49945ecc3c.tar.gz
qemu-740d6c4eba8bb44ea00550ccc97a4c49945ecc3c.tar.bz2
error: Drop a few superfluous ERRP_GUARD()
include/qapi/error.h on ERRP_GUARD(): * It must be used when the function dereferences @errp or passes * @errp to error_prepend(), error_vprepend(), or error_append_hint(). * It is safe to use even when it's not needed, but please avoid * cluttering the source with useless code. Clean up some of this clutter. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20221121085054.683122-3-armbru@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/util.c b/ui/util.c
index 7e8fc1e..907d60e 100644
--- a/ui/util.c
+++ b/ui/util.c
@@ -51,7 +51,6 @@ bool qemu_console_fill_device_address(QemuConsole *con,
size_t size,
Error **errp)
{
- ERRP_GUARD();
DeviceState *dev = DEVICE(object_property_get_link(OBJECT(con),
"device",
&error_abort));