[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-cvs
Subject: [Xen-changelog] [xen staging] libxl: remove one indentation level
From: patchbot () xen ! org
Date: 2019-06-28 11:00:04
Message-ID: E1hgobs-0005Vk-3P () xenbits ! xenproject ! org
[Download RAW message or body]
commit dd7c44929bf88c5a5c2fc8bf327eee8e6698df93
Author: Roger Pau Monne <roger.pau@citrix.com>
AuthorDate: Thu Jun 27 10:27:07 2019 +0200
Commit: Wei Liu <liuw@liuw.name>
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@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
---
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
[Attachment #3 (text/plain)]
_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic