On Sun, Jun 26, 2022 at 08:07:34PM +0200, Martin Kaiser wrote: > The receive_disconnect function always returns _SUCCESS. None of the > callers checks the return value. We can remove it. > > Signed-off-by: Martin Kaiser <martin@xxxxxxxxx> > --- > drivers/staging/r8188eu/core/rtw_mlme_ext.c | 5 ++--- > drivers/staging/r8188eu/include/rtw_mlme_ext.h | 3 +-- > 2 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c > index cce0575e93b7..fc6e06d7b5ca 100644 > --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c > +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c > @@ -6191,14 +6191,14 @@ void start_clnt_assoc(struct adapter *padapter) > set_link_timer(pmlmeext, REASSOC_TO); > } > > -unsigned int receive_disconnect(struct adapter *padapter, unsigned char *MacAddr, unsigned short reason) > +void receive_disconnect(struct adapter *padapter, unsigned char *MacAddr, unsigned short reason) > { > struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; > struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info; > > /* check A3 */ > if (!(!memcmp(MacAddr, get_my_bssid(&pmlmeinfo->network), ETH_ALEN))) > - return _SUCCESS; > + return; Shouldn't this check return an error instead of success? If not, what exactly is this checking this for? thanks, greg k-h