diff options
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/rmmod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 3693aec7c..f4e65d0ce 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c | |||
@@ -106,13 +106,13 @@ extern int rmmod_main(int argc, char **argv) | |||
106 | bb_show_usage(); | 106 | bb_show_usage(); |
107 | 107 | ||
108 | { | 108 | { |
109 | for (n = optind; n < argc; n++) { | ||
109 | #ifdef CONFIG_FEATURE_2_6_MODULES | 110 | #ifdef CONFIG_FEATURE_2_6_MODULES |
110 | char module_name[strlen(argv[n]) + 1]; | 111 | char module_name[strlen(argv[n]) + 1]; |
111 | filename2modname(module_name, argv[n]); | 112 | filename2modname(module_name, argv[n]); |
112 | #else | 113 | #else |
113 | #define module_name argv[n] | 114 | #define module_name argv[n] |
114 | #endif | 115 | #endif |
115 | for (n = optind; n < argc; n++) { | ||
116 | if (syscall(__NR_delete_module, module_name, flags) < 0) { | 116 | if (syscall(__NR_delete_module, module_name, flags) < 0) { |
117 | bb_perror_msg("%s", argv[n]); | 117 | bb_perror_msg("%s", argv[n]); |
118 | ret = EXIT_FAILURE; | 118 | ret = EXIT_FAILURE; |