alistair23-linux/drivers/staging/winbond
Harsh Kumar d3d472b6e5 Staging: winbond: Check for unsuccessful allocation immediately
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>
2013-06-03 12:32:00 -07:00
..
core.h
Kconfig
localpara.h
mac_structures.h
Makefile
mds.c
mds_f.h
mds_s.h
mto.c
mto.h
phy_calibration.c
phy_calibration.h
reg.c
sme_api.h
TODO
wb35reg.c Staging: winbond: Check for unsuccessful allocation immediately 2013-06-03 12:32:00 -07:00
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