summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/md/md.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 32ed47f..57eed2e 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -650,8 +650,6 @@ mdnew(int unit)
}
if (unit == -1)
unit = max + 1;
- if (unit > 255)
- return (NULL);
sc = (struct md_s *)malloc(sizeof *sc, M_MD, M_WAITOK | M_ZERO);
sc->unit = unit;
bioq_init(&sc->bio_queue);
OpenPOWER on IntegriCloud