summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2022-11-11 09:37:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-17 19:48:46 +0100
commit64ce3acd0a50b3ad7ff345fe11bbb3d39cab216b (patch)
treef1fe73eb3fdd033539b878af4940d93849db52ab /drivers/staging/r8188eu/include
parent8985814bb3732aaf7ce5bf892d2827bd4d854fc7 (diff)
downloadlinux-64ce3acd0a50b3ad7ff345fe11bbb3d39cab216b.tar.bz2
staging: r8188eu: convert _rtw_init_xmit_priv() to common error logic
Convert the function _rtw_init_xmit_priv() away from returning _FAIL or _SUCCESS which uses inverted error logic. Use the common error logic instead. Return 0 for success and negative values for failure. Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20221111083733.3144-4-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include')
-rw-r--r--drivers/staging/r8188eu/include/rtw_xmit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/rtw_xmit.h b/drivers/staging/r8188eu/include/rtw_xmit.h
index cff065554608..6e7ebea5362d 100644
--- a/drivers/staging/r8188eu/include/rtw_xmit.h
+++ b/drivers/staging/r8188eu/include/rtw_xmit.h
@@ -351,7 +351,7 @@ s32 rtw_txframes_pending(struct adapter *padapter);
s32 rtw_txframes_sta_ac_pending(struct adapter *padapter,
struct pkt_attrib *pattrib);
void rtw_init_hwxmits(struct hw_xmit *phwxmit, int entry);
-s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter);
+int _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter);
void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv);
int rtw_alloc_hwxmits(struct adapter *padapter);
void rtw_free_hwxmits(struct adapter *padapter);