summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/scsi_id/scsi_id.c1
-rw-r--r--src/udev/udevadm-info.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/udev/scsi_id/scsi_id.c b/src/udev/scsi_id/scsi_id.c
index 03bd3a9182..5511df8825 100644
--- a/src/udev/scsi_id/scsi_id.c
+++ b/src/udev/scsi_id/scsi_id.c
@@ -396,7 +396,6 @@ static int set_options(struct udev *udev,
case 'V':
printf("%s\n", VERSION);
exit(0);
- break;
case 'x':
export = true;
diff --git a/src/udev/udevadm-info.c b/src/udev/udevadm-info.c
index 64bb537210..8145e6f50c 100644
--- a/src/udev/udevadm-info.c
+++ b/src/udev/udevadm-info.c
@@ -498,8 +498,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: