summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r--mdk-stage1/modules.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 0c9aa0c32..3b4a94279 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -92,20 +92,13 @@ static char *kernel_module_extension(void)
static char *filename2modname(char * filename) {
- char *modname, *p;
+ char *modname;
modname = strdup(basename(filename));
if (strstr(modname, kernel_module_extension())) {
modname[strlen(modname)-strlen(kernel_module_extension())] = '\0'; /* remove trailing .ko.gz */
}
- p = modname;
- while (p && *p) {
- if (*p == '-')
- *p = '_';
- p++;
- }
-
return modname;
}