It makes no sense to check for argc < 1, remove this logic. Signed-off-by: Davidlohr Bueso <davidlohr@xxxxxx> --- disk-utils/sfdisk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index a54763d..9fc71b4 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -2552,8 +2552,6 @@ main(int argc, char **argv) { textdomain(PACKAGE); atexit(close_stdout); - if (argc < 1) - errx(EXIT_FAILURE, _("no command?")); if (!strcmp(program_invocation_short_name, "activate")) activate = 1; /* equivalent to `sfdisk -A' */ -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html