staging: rtl8723bs: os_dep: Change return type of rtw_init_default_value() to void
authorShobhit Kukreti <shobhitkukreti@gmail.com>
Sat, 22 Jun 2019 16:40:42 +0000 (09:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 01:50:51 +0000 (09:50 +0800)
rtw_init_default_value() func always returns a value (u8)_SUCCESS.
Modified return type to void to resolve coccicheck warnings
of unneeded variable.

Signed-off-by: Shobhit Kukreti <shobhitkukreti@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/os_intfs.c

index 2b90a11a33f803ebe1c22f710072e6c8066a2799..6a8a7092f3ba57ab3b6cf37699dcbf6ad6ca02cb 100644 (file)
@@ -599,9 +599,8 @@ void rtw_stop_drv_threads (struct adapter *padapter)
        rtw_hal_stop_thread(padapter);
 }
 
-static u8 rtw_init_default_value(struct adapter *padapter)
+static void rtw_init_default_value(struct adapter *padapter)
 {
-       u8 ret  = _SUCCESS;
        struct registry_priv *pregistrypriv = &padapter->registrypriv;
        struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
@@ -663,7 +662,6 @@ static u8 rtw_init_default_value(struct adapter *padapter)
        padapter->driver_ampdu_spacing = 0xFF;
        padapter->driver_rx_ampdu_factor =  0xFF;
 
-       return ret;
 }
 
 struct dvobj_priv *devobj_init(void)
@@ -745,7 +743,7 @@ u8 rtw_init_drv_sw(struct adapter *padapter)
 
        RT_TRACE(_module_os_intfs_c_, _drv_info_, ("+rtw_init_drv_sw\n"));
 
-       ret8 = rtw_init_default_value(padapter);
+       rtw_init_default_value(padapter);
 
        rtw_init_hal_com_default_value(padapter);