staging: rtl8192u: propagate errors in write_nic_word
authorSalah Triki <salah.triki@acm.org>
Wed, 4 May 2016 03:42:47 +0000 (04:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Jun 2016 02:49:02 +0000 (19:49 -0700)
commit28d653d7d17e774afa375b08fb55c4c0e22795ea
tree026620e946de8ebb3785858dcd4c3ea7b23031bd
parent6ae4e4b3028b277ab9bcf776bcbe4db8681af317
staging: rtl8192u: propagate errors in write_nic_word

Propagate errors from kzalloc and usb_control_msg and change the
return type of write_nic_word from void to int.

Signed-off-by: Salah Triki <salah.triki@acm.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U.h
drivers/staging/rtl8192u/r8192U_core.c