artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb4b427
)
remove <0 check for an unsigned variable
author
deraadt
<deraadt@openbsd.org>
Wed, 13 Jul 2016 15:41:51 +0000
(15:41 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 13 Jul 2016 15:41:51 +0000
(15:41 +0000)
from tom
sys/dev/wscons/wsmouse.c
patch
|
blob
|
history
diff --git
a/sys/dev/wscons/wsmouse.c
b/sys/dev/wscons/wsmouse.c
index
1d59fca
..
6139dec
100644
(file)
--- a/
sys/dev/wscons/wsmouse.c
+++ b/
sys/dev/wscons/wsmouse.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: wsmouse.c,v 1.3
2 2016/07/12 22:02:53 bru
Exp $ */
+/* $OpenBSD: wsmouse.c,v 1.3
3 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;
}