summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index b83cfb1bb..5be4ff608 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -1486,10 +1486,8 @@ int main(int argc, char *argv[])
errtryhelp(EXIT_FAILURE);
}
}
- argc -= optind;
- argv += optind;
- if (argc > 1)
+ if (argc != optind)
usage(stderr);
if ((is_timefmt(&ctl, RELTIME) ||