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
This commit is contained in:
Oliver Smith 2022-07-31 21:10:01 +02:00 committed by Caleb Connolly
parent 883ce77d1e
commit 99ce784c28
No known key found for this signature in database
GPG key ID: 0583312B195F64B6

View file

@ -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",