d3d472b6e5
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 <harsh1kumar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
TODO | ||
core.h | ||
localpara.h | ||
mac_structures.h | ||
mds.c | ||
mds_f.h | ||
mds_s.h | ||
mto.c | ||
mto.h | ||
phy_calibration.c | ||
phy_calibration.h | ||
reg.c | ||
sme_api.h | ||
wb35reg.c | ||
wb35reg_f.h | ||
wb35reg_s.h | ||
wb35rx.c | ||
wb35rx_f.h | ||
wb35rx_s.h | ||
wb35tx.c | ||
wb35tx_f.h | ||
wb35tx_s.h | ||
wbhal.h | ||
wbusb.c |