From 4a9c00539b2bab70862079a958ebcfe6598d8be5 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Tue, 7 May 2024 15:16:13 +0200 Subject: [PATCH] can-calc-bit-timing: in case of invalid option exit with error Link: https://github.com/linux-can/can-utils/issues/518 Reported-by: https://github.com/EnricoMontecaggi Fixes: f4a9e5b57def ("can-calc-bit-timing.c: Reformat help/usage output to be compatible with help2man.") --- calc-bit-timing/can-calc-bit-timing.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/calc-bit-timing/can-calc-bit-timing.c b/calc-bit-timing/can-calc-bit-timing.c index 2ea5f622..12a7b97e 100644 --- a/calc-bit-timing/can-calc-bit-timing.c +++ b/calc-bit-timing/can-calc-bit-timing.c @@ -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;