summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-07-20 18:06:45 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-07-20 18:06:45 +0000
commiteb9bfe344e7513432c254ca47eaede4040e41b75 (patch)
tree50357d7492af9205ed7a94692831ef8f84584814 /sys/dev
parent6fc54a26d5e81af3726f9a39ee17a609b552c368 (diff)
otto sez there is no need to check for upper bound for the ileave. indeed
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ccd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c
index a702ae895f5..bd534182322 100644
--- a/sys/dev/ccd.c
+++ b/sys/dev/ccd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccd.c,v 1.65 2006/07/20 15:42:09 mickey Exp $ */
+/* $OpenBSD: ccd.c,v 1.66 2006/07/20 18:06:44 mickey Exp $ */
/* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */
/*-
@@ -1152,7 +1152,7 @@ ccdioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
return (EBUSY);
if (ccio->ccio_ndisks == 0 || ccio->ccio_ndisks > INT_MAX ||
- ccio->ccio_ileave <= 0 || ccio->ccio_ileave > INT_MAX)
+ ccio->ccio_ileave <= 0)
return (EINVAL);
if ((error = ccdlock(cs)) != 0)