Re: [PATCH v3 04/15] qga: flatten safe_open_or_create()

2022-05-16 Thread Markus Armbruster
marcandre.lur...@redhat.com writes: > From: Marc-André Lureau > > 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 > --- > qga/commands-posi

[PATCH v3 04/15] qga: flatten safe_open_or_create()

2022-05-13 Thread marcandre . lureau
From: Marc-André Lureau 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 --- qga/commands-posix.c | 122 ++-