summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-11-21 17:22:30 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-11-21 17:22:30 +0000
commitd1dec864e4e1fe680c428c642401fb3b163f137c (patch)
tree45a2f52de2d7737137f13b07ceb5a06503d24c30 /sys
parentf4b7f8d09b4a52e7744e3b676115d1e1b5dfe30e (diff)
downloadFreeBSD-src-d1dec864e4e1fe680c428c642401fb3b163f137c.zip
FreeBSD-src-d1dec864e4e1fe680c428c642401fb3b163f137c.tar.gz
Enclosed the arguments of binary and in brackets.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/usb.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index ef37b4e..80b235b 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -521,10 +521,12 @@ usbpoll(dev, events, p)
mask = POLLIN | POLLRDNORM;
s = splusb();
- if (events & mask && usb_nevents > 0)
+ if ((events & mask) && usb_nevents > 0)
revents |= events & mask;
- if (revents == 0 && events & mask)
+ if (revents == 0 && (events & mask)) {
+ DPRINTF(("usb: sleeping on %p\n", &usb_selevent));
selrecord(p, &usb_selevent);
+ }
splx(s);
return (revents);
@@ -539,9 +541,9 @@ usbpoll(dev, events, p)
mask = POLLOUT | POLLRDNORM;
s = splusb();
- if (events & mask && sc->sc_bus->needs_explore)
+ if ((events & mask) && sc->sc_bus->needs_explore)
revents |= events & mask;
- if (revents == 0 && events & mask)
+ if (revents == 0 && (events & mask))
selrecord(p, &sc->sc_consel);
splx(s);
@@ -629,7 +631,7 @@ usbd_add_event(type, dev)
s = splusb();
if (++usb_nevents >= USB_MAX_EVENTS) {
/* Too many queued events, drop an old one. */
- DPRINTFN(-1,("usb: event dropped\n"));
+ DPRINTF(("usb: event dropped\n"));
(void)usb_get_next_event(&ue);
}
/* Don't want to wait here inside splusb() */
OpenPOWER on IntegriCloud