staging: rtl8723bs: hal: hal_btcoex.c: Remove variables
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 10 Jun 2019 07:47:05 +0000 (13:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2019 09:47:01 +0000 (11:47 +0200)
Remove variables and use the values directly.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_btcoex.c

index 6caddd7834a189f795c7924efb61cc8e524aa8e3..aebe8b8977adc18735338f05dbb91c88c192368d 100644 (file)
@@ -362,15 +362,9 @@ static u32 halbtcoutsrc_GetBtPatchVer(PBTC_COEXIST pBtCoexist)
 
 static s32 halbtcoutsrc_GetWifiRssi(struct adapter *padapter)
 {
-       struct hal_com_data *pHalData;
-       s32 UndecoratedSmoothedPWDB = 0;
-
-
-       pHalData = GET_HAL_DATA(padapter);
-
-       UndecoratedSmoothedPWDB = pHalData->dmpriv.EntryMinUndecoratedSmoothedPWDB;
+       struct hal_com_data *pHalData = GET_HAL_DATA(padapter);
 
-       return UndecoratedSmoothedPWDB;
+       return pHalData->dmpriv.EntryMinUndecoratedSmoothedPWDB;
 }
 
 static u8 halbtcoutsrc_GetWifiScanAPNum(struct adapter *padapter)