[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] libxl: remove one indentation level
commit dd7c44929bf88c5a5c2fc8bf327eee8e6698df93 Author: Roger Pau Monne <roger.pau@xxxxxxxxxx> AuthorDate: Thu Jun 27 10:27:07 2019 +0200 Commit: Wei Liu <liuw@xxxxxxxxx> CommitDate: Fri Jun 28 11:54:52 2019 +0100 libxl: remove one indentation level The nested if condition can be joined with the outer one, removing one indentation level. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Wei Liu <wl@xxxxxxx> --- tools/libxl/libxl_xshelp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c index c4a18df353..751cd942d9 100644 --- a/tools/libxl/libxl_xshelp.c +++ b/tools/libxl/libxl_xshelp.c @@ -209,11 +209,9 @@ int libxl__xs_read_checked(libxl__gc *gc, xs_transaction_t t, const char *path, const char **result_out) { char *result = libxl__xs_read(gc, t, path); - if (!result) { - if (errno != ENOENT) { - LOGE(ERROR, "xenstore read failed: `%s'", path); - return ERROR_FAIL; - } + if (!result && errno != ENOENT) { + LOGE(ERROR, "xenstore read failed: `%s'", path); + return ERROR_FAIL; } *result_out = result; return 0; -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |