From 44223a030b7737a266802e62900aa473de020d41 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 13 Jul 2016 15:41:51 +0000 Subject: [PATCH] remove <0 check for an unsigned variable from tom --- sys/dev/wscons/wsmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1