modutils: fix build error with !DEPMOD

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2015-11-06 15:50:28 +01:00
parent 48dc80bbba
commit 196e400441

View File

@ -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;
}