commit | 98861f512bbd8789bd7935a75316d3278be23a0a | [log] [tgz] |
---|---|---|
author | Gerd Hoffmann <kraxel@redhat.com> | Tue Jan 10 17:33:02 2012 +0100 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Fri Feb 10 11:31:57 2012 +0100 |
tree | a5f798a6742f9df2f2e158f7446e77a6a0fbbd96 | |
parent | 06c750888c57bdc374feaa097f6cbc720210b834 [diff] |
usb: handle dev == NULL in usb_handle_packet() Allow passing in a NULL pointer, return USB_RET_NODEV in that case. Removes the burden to to a NULL pointer check from the callers. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>