Skip to content

Commit

Permalink
can-calc-bit-timing: in case of invalid option exit with error
Browse files Browse the repository at this point in the history
Link: linux-can#518
Reported-by: https://github.com/EnricoMontecaggi
Fixes: f4a9e5b ("can-calc-bit-timing.c: Reformat help/usage output to be compatible with help2man.")
  • Loading branch information
marckleinebudde committed May 7, 2024
1 parent 8d7d765 commit 4a9c005
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions calc-bit-timing/can-calc-bit-timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,11 +1514,6 @@ int main(int argc, char *argv[])
data->verbose = true;
break;

case '?':
print_usage(basename(argv[0]));
exit(EXIT_SUCCESS);
break;

case OPT_TQ:
opt_bt->tq = strtoul(optarg, NULL, 10);
break;
Expand Down

0 comments on commit 4a9c005

Please sign in to comment.