From 99ce784c289f00d11b143b59dfd52c63d5ef3b8d Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 31 Jul 2022 21:10:01 +0200 Subject: [PATCH] getopt: remove unneeded check for -d Remove the extra check for a value after specifying -d, as getopt() is already taking care of it: pbsplash: option requires an argument: d --- src/pbsplash.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pbsplash.c b/src/pbsplash.c index ff8b01c..75042de 100644 --- a/src/pbsplash.c +++ b/src/pbsplash.c @@ -248,10 +248,6 @@ int main(int argc, char **argv) } break; case 'd': - if (!optarg) { - fprintf(stderr, "--dpi requires an argument\n"); - return usage(); - } dpi = strtol(optarg, &end, 10); if (end == optarg) { fprintf(stderr, "Invalid dpi: %s\n",