Message ID | 20241220165837.937976-2-Ariel.Otilibili-Anieli@eurecom.fr (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | tools/libs,xen/tools: remove dead code | expand |
diff --git a/tools/libs/light/libxl_create.c b/tools/libs/light/libxl_create.c index e03599ea99..d0271bef7e 100644 --- a/tools/libs/light/libxl_create.c +++ b/tools/libs/light/libxl_create.c @@ -1890,7 +1890,6 @@ static void domcreate_launch_dm(libxl__egc *egc, libxl__multidev *multidev, ret = ERROR_INVAL; goto error_out; } - abort(); /* not reached */ error_out: assert(ret); diff --git a/tools/libs/light/libxl_device.c b/tools/libs/light/libxl_device.c index 4faa5fa3bd..96046803e1 100644 --- a/tools/libs/light/libxl_device.c +++ b/tools/libs/light/libxl_device.c @@ -392,7 +392,6 @@ static int disk_try_backend(disk_try_backend_args *a, return 0; } - abort(); /* notreached */ bad_format: LOG(DEBUG, "Disk vdev=%s, backend %s unsuitable due to format %s",
Default switch cases skip these steps; these instructions are never reached. Coverity-IDs: 1056148, 1056149 Fixes: 0a69ea908d ("libxl: ao: convert libxl__spawn_*") Fixes: 643b106b40 ("libxl: do not use tap disk backend other than for raw and vhd") Signed-off-by: Ariel Otilibili <Ariel.Otilibili-Anieli@eurecom.fr> -- Cc: Anthony PERARD <anthony.perard@vates.tech> Cc: Juergen Gross <jgross@suse.com> Cc: "Daniel P. Smith" <dpsmith@apertussolutions.com> --- tools/libs/light/libxl_create.c | 1 - tools/libs/light/libxl_device.c | 1 - 2 files changed, 2 deletions(-)