nfc-read-forum-tag3: remove redundant error
switch case was redundant as getopt was already telling the issue: nfc-read-forum-tag3: option requires an argument -- 'o' Option -o requires an argument. This fixes also a problem reported by Coverity about missing break: CID 1090330 (#1 of 1): Missing break in switch (MISSING_BREAK) unterminated_case: This case (value 63) is not terminated by a 'break' statement.
This commit is contained in:
parent
70048a0b2c
commit
feb5f37aa3
1 changed files with 0 additions and 3 deletions
|
@ -178,9 +178,6 @@ main(int argc, char *argv[])
|
||||||
case 'o':
|
case 'o':
|
||||||
ndef_output = optarg;
|
ndef_output = optarg;
|
||||||
break;
|
break;
|
||||||
case '?':
|
|
||||||
if (optopt == 'o')
|
|
||||||
fprintf(stderr, "Option -%c requires an argument.\n", optopt);
|
|
||||||
default:
|
default:
|
||||||
print_usage(argv[0]);
|
print_usage(argv[0]);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue