staging: rtl8723bs: convert type to bool
authorAastha Gupta <aastha.gupta4104@gmail.com>
Sun, 8 Oct 2017 04:54:54 +0000 (10:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 14:07:49 +0000 (16:07 +0200)
Here the variable bips_processing is always supplied a bool value
while inside struct definition it is defined as an uint type.
Fix it by defining bips_processing a bool type.

Also a restore_iqk_rst = (pwrpriv->bips_processing == true) is same
as restore_iqk_rst = pwrpriv->bips_processing

Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_halinit.c
drivers/staging/rtl8723bs/include/rtw_pwrctrl.h

index 63bca67..1af77ad 100644 (file)
@@ -1019,7 +1019,7 @@ static u32 rtl8723bs_hal_init(struct adapter *padapter)
 
                        rtw_btcoex_IQKNotify(padapter, true);
 
-                       restore_iqk_rst = (pwrpriv->bips_processing == true) ? true : false;
+                       restore_iqk_rst = pwrpriv->bips_processing;
                        b2Ant = pHalData->EEPROMBluetoothAntNum == Ant_x2;
                        PHY_IQCalibrate_8723B(padapter, false, restore_iqk_rst, b2Ant, pHalData->ant_path);
                        pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized = true;
index cf8e766..79a2db6 100644 (file)
@@ -250,7 +250,7 @@ struct pwrctrl_priv
        u8 ips_mode;
        u8 ips_org_mode;
        u8 ips_mode_req; /*  used to accept the mode setting request, will update to ipsmode later */
-       uint bips_processing;
+       bool bips_processing;
        unsigned long ips_deny_time; /* will deny IPS when system time is smaller than this */
        u8 pre_ips_type;/*  0: default flow, 1: carddisbale flow */