mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Enclosed the arguments of binary and in brackets.
This commit is contained in:
parent
e479a8af2a
commit
6c1119c8a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53513
@ -521,10 +521,12 @@ usbpoll(dev, events, p)
|
|||||||
mask = POLLIN | POLLRDNORM;
|
mask = POLLIN | POLLRDNORM;
|
||||||
|
|
||||||
s = splusb();
|
s = splusb();
|
||||||
if (events & mask && usb_nevents > 0)
|
if ((events & mask) && usb_nevents > 0)
|
||||||
revents |= events & mask;
|
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);
|
selrecord(p, &usb_selevent);
|
||||||
|
}
|
||||||
splx(s);
|
splx(s);
|
||||||
|
|
||||||
return (revents);
|
return (revents);
|
||||||
@ -539,9 +541,9 @@ usbpoll(dev, events, p)
|
|||||||
mask = POLLOUT | POLLRDNORM;
|
mask = POLLOUT | POLLRDNORM;
|
||||||
|
|
||||||
s = splusb();
|
s = splusb();
|
||||||
if (events & mask && sc->sc_bus->needs_explore)
|
if ((events & mask) && sc->sc_bus->needs_explore)
|
||||||
revents |= events & mask;
|
revents |= events & mask;
|
||||||
if (revents == 0 && events & mask)
|
if (revents == 0 && (events & mask))
|
||||||
selrecord(p, &sc->sc_consel);
|
selrecord(p, &sc->sc_consel);
|
||||||
splx(s);
|
splx(s);
|
||||||
|
|
||||||
@ -629,7 +631,7 @@ usbd_add_event(type, dev)
|
|||||||
s = splusb();
|
s = splusb();
|
||||||
if (++usb_nevents >= USB_MAX_EVENTS) {
|
if (++usb_nevents >= USB_MAX_EVENTS) {
|
||||||
/* Too many queued events, drop an old one. */
|
/* 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);
|
(void)usb_get_next_event(&ue);
|
||||||
}
|
}
|
||||||
/* Don't want to wait here inside splusb() */
|
/* Don't want to wait here inside splusb() */
|
||||||
|
Loading…
Reference in New Issue
Block a user