aboutsummaryrefslogtreecommitdiffstats
path: root/src/framework/init/fw_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/init/fw_module.c')
-rw-r--r--src/framework/init/fw_module.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/framework/init/fw_module.c b/src/framework/init/fw_module.c
index 1f22ecb..acf4fdb 100644
--- a/src/framework/init/fw_module.c
+++ b/src/framework/init/fw_module.c
@@ -225,10 +225,8 @@ nsfw_module_set_instance_depends (nsfw_module_instance_t * inst, char *name)
if (NULL == dep)
return;
- if (NULL == inst->depends)
- inst->depends = dep;
- else
- inst->depends->next = dep;
+ dep->next = inst->depends;
+ inst->depends = dep;
}
/* *INDENT-OFF* */