Module Name: src
Committed By: rillig
Date: Sun Dec 1 10:32:48 UTC 2024
Modified Files:
src/usr.bin/scmdctl: scmdctl.c
Log Message:
scmdctl: remove redundant 'break' after 'exit'
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/scmdctl/scmdctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/scmdctl/scmdctl.c
diff -u src/usr.bin/scmdctl/scmdctl.c:1.2 src/usr.bin/scmdctl/scmdctl.c:1.3
--- src/usr.bin/scmdctl/scmdctl.c:1.2 Sun Nov 3 10:43:27 2024
+++ src/usr.bin/scmdctl/scmdctl.c Sun Dec 1 10:32:48 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: scmdctl.c,v 1.2 2024/11/03 10:43:27 rillig Exp $ */
+/* $NetBSD: scmdctl.c,v 1.3 2024/12/01 10:32:48 rillig Exp $ */
/*
* Copyright (c) 2021 Brad Spencer <[email protected]>
@@ -18,7 +18,7 @@
#include <sys/cdefs.h>
#ifdef __RCSID
-__RCSID("$NetBSD: scmdctl.c,v 1.2 2024/11/03 10:43:27 rillig Exp $");
+__RCSID("$NetBSD: scmdctl.c,v 1.3 2024/12/01 10:32:48 rillig Exp $");
#endif
/* Main userland program that knows how to talk to the Sparkfun
@@ -346,7 +346,6 @@ main(int argc, char *argv[])
fprintf(stderr,"Unhandled subcommand to motor: %s %d\n\n", argv[2], validsub);
usage();
exit(1);
- break;
}
} else {
fprintf(stderr,"Unknown subcommand to motor: %s\n\n", argv[2]);
@@ -469,7 +468,6 @@ main(int argc, char *argv[])
fprintf(stderr,"Unhandled subcommand to updaterate: %s %d\n\n", argv[2], validsub);
usage();
exit(1);
- break;
}
} else {
fprintf(stderr,"Unknown subcommand to updaterate: %s\n\n", argv[2]);
@@ -510,7 +508,6 @@ main(int argc, char *argv[])
fprintf(stderr,"Unhandled subcommand to expansion_bus: %s %d\n\n", argv[2], validsub);
usage();
exit(1);
- break;
}
} else {
fprintf(stderr,"Unknown subcommand to expansion_bus: %s\n\n", argv[2]);
@@ -552,7 +549,6 @@ main(int argc, char *argv[])
fprintf(stderr,"Unhandled subcommand to lock: %s %d\n\n", argv[2], validsub);
usage();
exit(1);
- break;
}
} else {
fprintf(stderr,"Unknown subcommand to lock: %s\n\n", argv[2]);
@@ -575,7 +571,6 @@ main(int argc, char *argv[])
default:
fprintf(stderr,"Unknown handling of command: %d\n",valid);
exit(2);
- break;
}
if (! error) {
@@ -624,7 +619,6 @@ main(int argc, char *argv[])
default:
fprintf(stderr,"Unknown printing of command: %d\n",valid);
exit(2);
- break;
}
} else {
fprintf(stderr,"Error: %d\n", error);