aboutsummaryrefslogtreecommitdiff
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 929266477fe1..52734281266c 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -279,9 +279,7 @@ MakeDev(struct chunk *c1, const char *path)
if (!strcmp(p, "X"))
return 0;
- if (!strncmp(p, "wd", 2))
- cmaj = 3, p += 2;
- else if (!strncmp(p, "ad", 2))
+ if (!strncmp(p, "ad", 2))
cmaj = 116, p += 2;
else if (!strncmp(p, "wfd", 3))
cmaj = 87, p += 3;