summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/modules.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 428b12460..882e617fe 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -64,6 +64,9 @@ int insmod_local_file(char * path, char * options)
unsigned long len;
int rc;
+ if (IS_TESTING)
+ return 0;
+
file = grab_file(path, &len);
if (!file) {
@@ -91,9 +94,6 @@ static int load_modules_dependencies(void)
log_message("loading modules dependencies");
- if (IS_TESTING)
- return 0;
-
fd = open(deps_file, O_RDONLY);
if (fd == -1) {
log_perror(deps_file);
@@ -284,9 +284,6 @@ enum insmod_return my_insmod(const char * mod_name, enum driver_type type __attr
net_devices = get_net_devices();
#endif
- if (IS_TESTING)
- return INSMOD_OK;
-
#ifdef ENABLE_NETWORK_STANDALONE
{
char *cmd = options ? asprintf_("/sbin/modprobe %s %s", mod_name, options) :