projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcaacad
)
libxc: remove pointless null pointer check in xc_interface_open_common
author
Matthew Daley
<mattjd@gmail.com>
Wed, 30 Oct 2013 07:51:43 +0000
(20:51 +1300)
committer
Ian Campbell
<ian.campbell@citrix.com>
Thu, 31 Oct 2013 21:30:23 +0000
(21:30 +0000)
xch is guaranteed non-null here.
Coverity-ID:
1055944
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_private.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_private.c
b/tools/libxc/xc_private.c
index a260257cd55cde62f133da31782c59ca9055f7a2..524862e9e6b07391e93454228b50a0b9473da794 100644
(file)
--- a/
tools/libxc/xc_private.c
+++ b/
tools/libxc/xc_private.c
@@
-189,7
+189,7
@@
static struct xc_interface_core *xc_interface_open_common(xentoollog_logger *log
err_put_iface:
xc_osdep_put(&xch->osdep);
err:
-
if (xch)
xtl_logger_destroy(xch->error_handler_tofree);
+ xtl_logger_destroy(xch->error_handler_tofree);
if (xch != &xch_buf) free(xch);
return NULL;
}