From: Emil Velikov Date: Wed, 18 Sep 2024 15:49:08 +0000 (+0100) Subject: tools/insmod: remove unused -p -s shortopts X-Git-Tag: v34~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6b04afb3442de3c3e3d7f30c7c0d4c38b16cc72;p=thirdparty%2Fkmod.git tools/insmod: remove unused -p -s shortopts These have been around since the import to git, doing nothing. There are no users that I can see, the manual page does not list them and the shell completions (fish and bash lack any for insmod, zsh has one) don't suggest it either. Remove them. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/138 Signed-off-by: Lucas De Marchi --- diff --git a/tools/insmod.c b/tools/insmod.c index 94452ffa..825cd7f2 100644 --- a/tools/insmod.c +++ b/tools/insmod.c @@ -15,7 +15,7 @@ #include "kmod.h" -static const char cmdopts_s[] = "psfVh"; +static const char cmdopts_s[] = "fVh"; static const struct option cmdopts[] = { {"version", no_argument, 0, 'V'}, {"help", no_argument, 0, 'h'}, @@ -65,10 +65,6 @@ static int do_insmod(int argc, char *argv[]) if (c == -1) break; switch (c) { - case 'p': - case 's': - /* ignored, for compatibility only */ - break; case 'f': flags |= KMOD_PROBE_FORCE_MODVERSION; flags |= KMOD_PROBE_FORCE_VERMAGIC;