summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/hal_intf.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2022-07-30 16:39:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-16 15:13:56 +0200
commit57f14afac3f776f68ee74ed7df77925d81ea71cc (patch)
treef48a7fc15ffa8fa5e55064a50c3cb42b50ebe134 /drivers/staging/r8188eu/include/hal_intf.h
parent7b84ab85b12648bc27016088776bbd075e022be3 (diff)
downloadlinux-57f14afac3f776f68ee74ed7df77925d81ea71cc.tar.bz2
staging: r8188eu: handle errors from ReadAdapterInfo8188EU
Update ReadAdapterInfo8188EU to return 0 for success or a negative error code. If rtw_read8 fails, we can just relay the error it returns. Update rtw_usb_if1_init to check the return value from ReadAdapterInfo8188EU. For now, rtw_usb_if1_init does not yet pass errors from ReadAdapterInfo8188EU on to its caller. Suggested-by: Pavel Skripkin <paskripkin@gmail.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220730143939.671951-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/hal_intf.h')
-rw-r--r--drivers/staging/r8188eu/include/hal_intf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/hal_intf.h b/drivers/staging/r8188eu/include/hal_intf.h
index ab6856d8a090..3ed5b7e031cd 100644
--- a/drivers/staging/r8188eu/include/hal_intf.h
+++ b/drivers/staging/r8188eu/include/hal_intf.h
@@ -11,7 +11,7 @@
typedef s32 (*c2h_id_filter)(u8 id);
void rtl8188eu_interface_configure(struct adapter *adapt);
-void ReadAdapterInfo8188EU(struct adapter *Adapter);
+int ReadAdapterInfo8188EU(struct adapter *Adapter);
void rtl8188eu_init_default_value(struct adapter *adapt);
void rtl8188e_SetHalODMVar(struct adapter *Adapter, void *pValue1, bool bSet);
u32 rtl8188eu_InitPowerOn(struct adapter *adapt);