remove it. This also fixes a defective check of the dynamic boundary
in sysctl_sysvshm().
OK mvs@ gnezdo@
-/* $OpenBSD: kern_sysctl.c,v 1.392 2021/05/01 16:18:28 gnezdo Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.393 2021/05/04 19:04:56 bluhm Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
if ((error = sysctl_int(oldp, oldlenp, newp, newlen, &val)))
return (error);
- /* bounded and outside limits */
- if (minimum < maximum && (val < minimum || maximum < val))
+ /* outside limits */
+ if (val < minimum || maximum < val)
return (EINVAL);
*valp = val;
return (0);