Skip to content

Commit 185c14f

Browse files
Merge pull request linux-can#519 from marckleinebudde/can-calc-bit-timing-fix-option-parsing
can-calc-bit-timing: in case of invalid option exit with error
2 parents 8d7d765 + 4a9c005 commit 185c14f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

calc-bit-timing/can-calc-bit-timing.c

-5
Original file line numberDiff line numberDiff line change
@@ -1514,11 +1514,6 @@ int main(int argc, char *argv[])
15141514
data->verbose = true;
15151515
break;
15161516

1517-
case '?':
1518-
print_usage(basename(argv[0]));
1519-
exit(EXIT_SUCCESS);
1520-
break;
1521-
15221517
case OPT_TQ:
15231518
opt_bt->tq = strtoul(optarg, NULL, 10);
15241519
break;

0 commit comments

Comments
 (0)