summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/hidms.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-07 15:30:13 +0000
committermiod <miod@openbsd.org>2011-04-07 15:30:13 +0000
commit88ee6abd86546d6aaff5433273d629543f1cf541 (patch)
tree8aa534e1e5ea72bfd571e672fa108ad62962c2ac /sys/dev/usb/hidms.c
parentMove a function declaration out of the function since it is used in the next (diff)
downloadwireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.tar.xz
wireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.zip
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/dev/usb/hidms.c')
-rw-r--r--sys/dev/usb/hidms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/hidms.c b/sys/dev/usb/hidms.c
index a24368a8744..261a56514c4 100644
--- a/sys/dev/usb/hidms.c
+++ b/sys/dev/usb/hidms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hidms.c,v 1.2 2011/03/04 23:57:52 kettenis Exp $ */
+/* $OpenBSD: hidms.c,v 1.3 2011/04/07 15:30:16 miod Exp $ */
/* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -188,7 +188,7 @@ hidms_setup(struct device *self, struct hidms *ms, uint32_t quirks,
/* figure out the number of buttons */
for (i = 1; i <= MAX_BUTTONS; i++)
if (!hid_locate(desc, dlen, HID_USAGE2(HUP_BUTTON, i), id,
- hid_input, &ms->sc_loc_btn[i - 1], 0))
+ hid_input, &ms->sc_loc_btn[i - 1], NULL))
break;
ms->sc_num_buttons = i - 1;