Allow a NULL pointer as argument to usb_get_next_event(), and don't
commit7913af9ed96045cace662f23981116665ae71b79
authorMichael Neumann <mneumann@dragonflybsd.org>
Mon, 26 May 2008 14:00:46 +0000 (26 14:00 +0000)
committerMichael Neumann <mneumann@dragonflybsd.org>
Mon, 26 May 2008 14:00:46 +0000 (26 14:00 +0000)
tree2d3e400dab792d7a0c3bbb2d9c3f1cc4881a5070
parent95c40ee5bfbf6383e5fb366bed91f539db7e8e43
Allow a NULL pointer as argument to usb_get_next_event(), and don't
allocate a "struct usb_event" on stack in usb_add_event().

Obtained-from: NetBSD/usb.c 1.83
sys/bus/usb/usb.c