]> git.ipfire.org Git - thirdparty/qemu.git/commit
qga: flatten safe_open_or_create()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 25 May 2022 14:41:29 +0000 (16:41 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 28 May 2022 09:42:56 +0000 (11:42 +0200)
commit69f56c140de06fee0f266b93634475e1d968e430
treede49d341b6a4749e34d6ea5053d0ebbed2dda80c
parent56b6dab2743b276a50036cd0a115e98cb1134f38
qga: flatten safe_open_or_create()

There is a bit too much nesting in the function, this can be simplified
a bit to improve readability.

This also helps with the following error handling changes.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220525144140.591926-5-marcandre.lureau@redhat.com>
qga/commands-posix.c