WSL2-Linux-Kernel/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
..
Kconfig staging: Add angle bracket before and after the URL 2013-01-07 14:56:04 -08:00
Makefile
TODO
core.h
localpara.h staging: "winbond" Fix typos. 2012-09-04 14:27:42 -07:00
mac_structures.h
mds.c Staging: winbond: mds: Fixed coding style issues 2012-11-13 13:11:57 -08:00
mds_f.h
mds_s.h staging: Fix typo in winbond 2012-06-12 10:52:32 -07:00
mto.c staging: "winbond" Fix typos. 2012-09-04 14:27:42 -07:00
mto.h
phy_calibration.c Staging: winbond: usb_free_urb(NULL) is safe 2013-05-30 20:59:47 +09:00
phy_calibration.h
reg.c Staging: winbond: Made local functions static 2013-05-30 20:59:48 +09:00
sme_api.h staging: winbond: Coding Style correction and removal of unused macro 2012-09-25 15:48:26 -07:00
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 Staging: winbond: usb_free_urb(NULL) is safe 2013-05-30 20:59:47 +09:00
wb35rx_f.h Staging: winbond: wb35rx_f: Fixed coding style issues 2012-11-13 13:11:57 -08:00
wb35rx_s.h Staging: winbond: wb35rx_s: Fixed coding style issue 2012-11-13 13:11:57 -08:00
wb35tx.c Staging: winbond: usb_free_urb(NULL) is safe 2012-09-26 14:02:54 -07:00
wb35tx_f.h
wb35tx_s.h Staging: winbond: Removed undesired spaces, lines and tabs 2012-09-26 09:18:46 -07:00
wbhal.h staging: "winbond" Fix typos. 2012-10-23 20:35:54 -07:00
wbusb.c Staging: winbond: wbusb: Fixed coding style issue 2012-11-13 13:11:57 -08:00