Re: [PATCH v2] at76c50x-usb: check memory allocation failure

2017-08-23 Thread Kalle Valo
Himanshu Jha writes: > Check memory allocation failure and return -ENOMEM rather than just > retuning void. > > Signed-off-by: Himanshu Jha [...] > -static void at76_dump_mib_mac_addr(struct at76_priv *priv) > +static int at76_dump_mib_mac_addr(struct at76_priv *priv) > { > int i; >

[PATCH v2] at76c50x-usb: check memory allocation failure

2017-08-23 Thread Himanshu Jha
Check memory allocation failure and return -ENOMEM rather than just retuning void. Signed-off-by: Himanshu Jha --- drivers/net/wireless/atmel/at76c50x-usb.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/wireless/atmel/at76c50x-usb.