xl: don't ignore return value from libxl_device_events_handler
PATCH 1/1 xl: don't ignore return value from libxl_device_events_handler
That function can return a whole slew of error codes. Translate them to EXIT_FAILURE.
---
Cc: Ian Jackson <[email protected]>
Cc: Julien Grall <[email protected]>
Cc: Roger Pau Monné <[email protected]>
--- tools/xl/xl_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xl/xl_misc.c +1 -1
@@ -182,7 +182,7 @@ int main_devd(int argc, char **argv) } } -libxl_device_events_handler (ctx,0 ); + ret =libxl_device_events_handler (ctx,0 ) ?EXIT_FAILURE :EXIT_SUCCESS ; out:return ret;
Signature · 1 line
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 4 lines · Wei Liu
That function can return a whole slew of error codes. Translate them to
EXIT_FAILURE.Signed-off-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Wei Liu writes ("[PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler"):
Quoted 2 lines
That function can return a whole slew of error codes. Translate them to
EXIT_FAILURE.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hi Wei,
Quoted 4 lines · Wei Liu
That function can return a whole slew of error codes. Translate them to
EXIT_FAILURE.Signed-off-by Wei Liu <[email protected]>
Cheers,
Quoted 22 lines
---
Cc: Ian Jackson <[email protected]>
Cc: Julien Grall <[email protected]>
Cc: Roger Pau Monné <[email protected]>--- tools/xl/xl_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/xl/xl_misc.c +1
-1@@ -182,7 +182,7 @@ int main_devd(int argc, char **argv) } } -libxl_device_events_handler (ctx,0 ); + ret =libxl_device_events_handler (ctx,0 ) ?EXIT_FAILURE :EXIT_SUCCESS ; out:return ret;
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel