From cc07b0b7ac66d0e4a05470dd69a28305405cd7dd Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 17 Sep 2013 23:27:58 +0200 Subject: [PATCH] cosmetic cleanup of - vs _ patch Signed-off-by: John Crispin --- kmodloader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kmodloader.c b/kmodloader.c index f45f3dc..9fd5ae4 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -81,6 +81,8 @@ static void free_modules(void) static void replace_dash(char *s) { + if (*s == '-') + return; while (s && *s) { if (*s == '-') *s = '_'; @@ -395,7 +397,7 @@ static int deps_available(struct module *m, int verbose) char *dep; int err = 0; - if (!strcmp(m->depends, "_") || !strcmp(m->depends, "")) + if (!strcmp(m->depends, "-") || !strcmp(m->depends, "")) return 0; dep = m->depends; @@ -449,7 +451,7 @@ static void load_moddeps(struct module *_m) char *dep; struct module *m; - if (!strcmp(_m->depends, "_") || !strcmp(_m->depends, "")) + if (!strcmp(_m->depends, "-") || !strcmp(_m->depends, "")) return; dep = _m->depends; -- 2.25.1