summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-22 11:31:38 +0000
committerphk <phk@FreeBSD.org>2003-06-22 11:31:38 +0000
commit5ad6b625098ed6128dd8ae9760a643b7a07a8c05 (patch)
treeefb1a5182192804b8bacdbd1e0ff129412c5e75f
parent24be6cd03d9d535e5be6c82d0f1ba3891fbfd089 (diff)
downloadFreeBSD-src-5ad6b625098ed6128dd8ae9760a643b7a07a8c05.zip
FreeBSD-src-5ad6b625098ed6128dd8ae9760a643b7a07a8c05.tar.gz
Remove 256 unit limit, there is no evil minor number encoding to
deal with any more. Spotted by: "Darren Freestone" <df@cops.org>
-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