From 196e400441652946b9c7ad7bc2d78c73885f2359 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 6 Nov 2015 15:50:28 +0100 Subject: modutils: fix build error with !DEPMOD Signed-off-by: Denys Vlasenko --- modutils/modutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modutils/modutils.c') diff --git a/modutils/modutils.c b/modutils/modutils.c index 8e9eef72d..0a056731d 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c @@ -39,7 +39,7 @@ static module_entry *helper_get_module(module_db *db, const char *module, int cr e->modname = xstrdup(modname); e->next = db->buckets[hash]; db->buckets[hash] = e; - e->dnext = e->dprev = e; + IF_DEPMOD(e->dnext = e->dprev = e;) return e; } -- cgit v1.2.3