mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
Check to see if allocation by kzalloc() or usb_alloc_urb() was unsuccessful immediately after the allocation. Exit from the function can be right at that point in case of allocation failure. This avoids unnecessary use of usb_alloc_urb() & usb_free_urb() if kzalloc() returns NULL. Also, makes the code better structured & easier to understand. Signed-off-by: Harsh Kumar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>