From: deraadt Date: Wed, 13 Jul 2016 15:41:51 +0000 (+0000) Subject: remove <0 check for an unsigned variable X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=44223a030b7737a266802e62900aa473de020d41;p=openbsd remove <0 check for an unsigned variable from tom --- diff --git a/sys/dev/wscons/wsmouse.c b/sys/dev/wscons/wsmouse.c index 1d59fca1f9d..6139deccae3 100644 --- a/sys/dev/wscons/wsmouse.c +++ b/sys/dev/wscons/wsmouse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmouse.c,v 1.32 2016/07/12 22:02:53 bru Exp $ */ +/* $OpenBSD: wsmouse.c,v 1.33 2016/07/13 15:41:51 deraadt Exp $ */ /* $NetBSD: wsmouse.c,v 1.35 2005/02/27 00:27:52 perry Exp $ */ /* @@ -1321,7 +1321,7 @@ wsmouse_set_param(struct device *sc, size_t param, int value) struct wsmouseparams *params = &input->params; int *p; - if (param < 0 || param > WSMPARAM_LASTFIELD) { + if (param > WSMPARAM_LASTFIELD) { printf("wsmouse_set_param: invalid parameter type\n"); return; }