summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/config.c b/config.c
index c09c206..1408b25 100644
--- a/config.c
+++ b/config.c
@@ -229,11 +229,7 @@ mddev_dev_t load_partitions(void)
continue;
minor = strtoul(mp, NULL, 10);
- name = map_dev(major, minor);
- if (!name) {
- snprintf(buf, 1024, "%d:%d", major, minor);
- name = buf;
- }
+ name = map_dev(major, minor, 1);
d = malloc(sizeof(*d));
d->devname = strdup(name);