Signed-off-by: Kang-Che Sung <[email protected]>
---
 modutils/modprobe.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index a6224fa63..58e8b5a15 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -466,10 +466,9 @@ static int do_modprobe(struct module_entry *m)
 #endif
 
                if (option_mask32 & OPT_SHOW_DEPS) {
-                       printf(options ? "insmod %s/%s/%s %s\n"
-                                       : "insmod %s/%s/%s\n",
+                       printf("insmod %s/%s/%s %s\n",
                                CONFIG_DEFAULT_MODULES_DIR, G.uts.release, fn,
-                               options);
+                               options ? options : "");
                        free(options);
                        continue;
                }
-- 
2.11.0

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to