mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 23:23:55 +08:00
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> |
||
---|---|---|
.. | ||
core.h | ||
Kconfig | ||
localpara.h | ||
mac_structures.h | ||
Makefile | ||
mds_f.h | ||
mds_s.h | ||
mds.c | ||
mto.c | ||
mto.h | ||
phy_calibration.c | ||
phy_calibration.h | ||
reg.c | ||
sme_api.h | ||
TODO | ||
wb35reg_f.h | ||
wb35reg_s.h | ||
wb35reg.c | ||
wb35rx_f.h | ||
wb35rx_s.h | ||
wb35rx.c | ||
wb35tx_f.h | ||
wb35tx_s.h | ||
wb35tx.c | ||
wbhal.h | ||
wbusb.c |