From 93f976f5f6b859c42b60a027fe226a4df43da678 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 28 Feb 2014 16:51:06 -0500 Subject: Remove dead lines in various places As pointed-out by clang -Wunreachable-code. No behaviour changes. Signed-off-by: Anthony G. Basile --- src/scsi_id/scsi_id.c | 1 - src/udev/udevadm-info.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scsi_id/scsi_id.c b/src/scsi_id/scsi_id.c index 849453f8eb..1b6606fa0f 100644 --- a/src/scsi_id/scsi_id.c +++ b/src/scsi_id/scsi_id.c @@ -396,7 +396,6 @@ static int set_options(struct udev *udev, case 'V': printf("%i\n", VERSION); exit(0); - break; case 'x': export = true; diff --git a/src/udev/udevadm-info.c b/src/udev/udevadm-info.c index 87225a8fec..9bf2c24ced 100644 --- a/src/udev/udevadm-info.c +++ b/src/udev/udevadm-info.c @@ -499,8 +499,7 @@ static int uinfo(struct udev *udev, int argc, char *argv[]) print_record(device); break; default: - fprintf(stderr, "unknown query type\n"); - break; + assert_not_reached("unknown query type"); } break; case ACTION_ATTRIBUTE_WALK: -- cgit v1.2.3-54-g00ecf