modprobe_small: if only MODPROBE and DEPMOD are selected, no need to test for them
function old new delta modprobe_main 321 306 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		| @@ -928,7 +928,9 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv) | |||||||
| 	/* Prevent ugly corner cases with no modules at all */ | 	/* Prevent ugly corner cases with no modules at all */ | ||||||
| 	modinfo = xzalloc(sizeof(modinfo[0])); | 	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 */ | 		/* Goto modules directory */ | ||||||
| 		xchdir(CONFIG_DEFAULT_MODULES_DIR); | 		xchdir(CONFIG_DEFAULT_MODULES_DIR); | ||||||
| 		uname(&uts); /* never fails */ | 		uname(&uts); /* never fails */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user