projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dfb44b
)
libxl: ocaml: remove dead code in xentoollog bindings
author
Rob Hoes
<rob.hoes@citrix.com>
Mon, 9 Dec 2013 15:17:30 +0000
(15:17 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 10 Dec 2013 13:34:53 +0000
(13:34 +0000)
Found by Coverty. CIDs:
1128567
1128568
1128576
1128577
.
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: David Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/ocaml/libs/xentoollog/xentoollog_stubs.c
patch
|
blob
|
history
diff --git
a/tools/ocaml/libs/xentoollog/xentoollog_stubs.c
b/tools/ocaml/libs/xentoollog/xentoollog_stubs.c
index 3b2f91bf9faef52b35811f8c3b3120f5b9421b0f..122ed0de4f38fef7484453d7dbbdabf255df3c11 100644
(file)
--- a/
tools/ocaml/libs/xentoollog/xentoollog_stubs.c
+++ b/
tools/ocaml/libs/xentoollog/xentoollog_stubs.c
@@
-87,8
+87,6
@@
static void stub_xtl_ocaml_vmessage(struct xentoollog_logger *logger,
value *func = caml_named_value(xtl->vmessage_cb) ;
char *msg;
- if (args == NULL)
- caml_raise_out_of_memory();
if (func == NULL)
caml_raise_sys_error(caml_copy_string("Unable to find callback"));
if (vasprintf(&msg, format, al) < 0)
@@
-116,8
+114,6
@@
static void stub_xtl_ocaml_progress(struct xentoollog_logger *logger,
struct caml_xtl *xtl = (struct caml_xtl*)logger;
value *func = caml_named_value(xtl->progress_cb) ;
- if (args == NULL)
- caml_raise_out_of_memory();
if (func == NULL)
caml_raise_sys_error(caml_copy_string("Unable to find callback"));