summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/mount.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/mount.c b/commands/mount.c
index 4cf1179b7b..834b06386b 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -76,10 +76,7 @@ static int do_mount(int argc, char *argv[])
struct cdev *cdev;
const char *path;
- if (!strncmp(devstr, "/dev/", 5))
- devstr += 5;
-
- device_detect_by_name(devstr);
+ device_detect_by_name(devpath_to_name(devstr));
cdev = cdev_by_name(devstr);
if (!cdev)