summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192u/r8192U.h
diff options
context:
space:
mode:
authorSalah Triki <salah.triki@acm.org>2016-05-04 04:42:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-18 19:49:02 -0700
commitec06d48f2443a681ff02d353bd188002d0df18f9 (patch)
treeee0f89c0e3a6275033928eb86eedb8bd52c8ff1c /drivers/staging/rtl8192u/r8192U.h
parent28d653d7d17e774afa375b08fb55c4c0e22795ea (diff)
downloadlinux-ec06d48f2443a681ff02d353bd188002d0df18f9.tar.gz
linux-ec06d48f2443a681ff02d353bd188002d0df18f9.tar.bz2
linux-ec06d48f2443a681ff02d353bd188002d0df18f9.zip
staging: rtl8192u: propagate errors in write_nic_dword
Propagate errors from kzalloc and usb_control_msg and change the return type of write_nic_dword from void to int. Signed-off-by: Salah Triki <salah.triki@acm.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/r8192U.h')
-rw-r--r--drivers/staging/rtl8192u/r8192U.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h
index 27f9aa50943a..eb0c35178dd7 100644
--- a/drivers/staging/rtl8192u/r8192U.h
+++ b/drivers/staging/rtl8192u/r8192U.h
@@ -1132,7 +1132,7 @@ int read_nic_word(struct net_device *dev, int x, u16 *data);
int write_nic_byte(struct net_device *dev, int x, u8 y);
int write_nic_byte_E(struct net_device *dev, int x, u8 y);
int write_nic_word(struct net_device *dev, int x, u16 y);
-void write_nic_dword(struct net_device *dev, int x, u32 y);
+int write_nic_dword(struct net_device *dev, int x, u32 y);
void force_pci_posting(struct net_device *dev);
void rtl8192_rtx_disable(struct net_device *);