projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
415cc42
)
modprobe_small: if only MODPROBE and DEPMOD are selected, no need to test for them
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 7 Feb 2017 15:41:25 +0000
(16:41 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 7 Feb 2017 15:41:25 +0000
(16:41 +0100)
function old new delta
modprobe_main 321 306 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modprobe-small.c
patch
|
blob
|
history
diff --git
a/modutils/modprobe-small.c
b/modutils/modprobe-small.c
index d6f4814157513791c6f112f72d9c03e3e7cb8114..431b8aeb23a702afb8022db4c6f333e337733035 100644
(file)
--- a/
modutils/modprobe-small.c
+++ b/
modutils/modprobe-small.c
@@
-928,7
+928,9
@@
int modprobe_main(int argc UNUSED_PARAM, char **argv)
/* Prevent ugly corner cases with no modules at all */
modinfo = xzalloc(sizeof(modinfo[0]));
- if (is_depmod || is_modprobe) {
+ if ((MOD_APPLET_CNT == 2 && ENABLE_DEPMOD && ENABLE_MODPROBE)
+ || is_depmod || is_modprobe
+ ) {
/* Goto modules directory */
xchdir(CONFIG_DEFAULT_MODULES_DIR);
uname(&uts); /* never fails */