staging: rtl8188eu: Use rtw_hal_sreset_init() in rtw_reset_drv_sw()
authornavin patidar <navin.patidar@gmail.com>
Thu, 29 May 2014 17:50:43 +0000 (23:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:28:49 +0000 (15:28 -0700)
We can replace rtw_hal_sreset_reset_value() with rtw_hal_sreset_init() because
both function call sreset_reset_value() and sreset_init_value() respectively at
the end of code path, and function defination of sreset_reset_value() and
sreset_init_value() is identical.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index 0e0c32d46431ab6498048ac1f61afd2be5e8592e..6fe32f0bb9ff82462c3560575f18c082e08e974f 100644 (file)
@@ -837,8 +837,7 @@ u8 rtw_reset_drv_sw(struct adapter *padapter)
        pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
 
        _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY | _FW_UNDER_LINKING);
-
-       rtw_hal_sreset_reset_value(padapter);
+       rtw_hal_sreset_init(padapter);
        pwrctrlpriv->pwr_state_check_cnts = 0;
 
        /* mlmeextpriv */