summaryrefslogtreecommitdiffstats
path: root/sbin/mdmfs
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mdmfs')
-rw-r--r--sbin/mdmfs/mdmfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c
index c552f56..acc6e00 100644
--- a/sbin/mdmfs/mdmfs.c
+++ b/sbin/mdmfs/mdmfs.c
@@ -246,9 +246,8 @@ main(int argc, char **argv)
ul = strtoul(unitstr, &p, 10);
if (ul == ULONG_MAX)
errx(1, "bad device unit: %s", unitstr);
- if (*p != '\0')
- mdsuffix = p;
unit = ul;
+ mdsuffix = p; /* can be empty */
}
mtpoint = argv[1];
OpenPOWER on IntegriCloud