]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8723bs: Change return type of hal_btcoex_IsBtDisabled()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 2 Jul 2019 07:01:32 +0000 (12:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 16:35:04 +0000 (18:35 +0200)
Change return type of hal_btcoex_IsBtDisabled from u8 to bool as the
only possible return values are true and false.
Where needed, modify accordingly the type of the variables used to store
this return value.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190702070132.6997-9-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_btcoex.c
drivers/staging/rtl8723bs/hal/rtl8723b_dm.c
drivers/staging/rtl8723bs/include/hal_btcoex.h

index 0c2a7543c72a39c240011db9e86dcb58a40ef09c..9fcf387916c4f14b2bd79d9e2b990659db34ab79 100644 (file)
@@ -1347,7 +1347,7 @@ u8 hal_btcoex_IsBtExist(struct adapter *padapter)
        return pHalData->bt_coexist.bBtExist;
 }
 
-u8 hal_btcoex_IsBtDisabled(struct adapter *padapter)
+bool hal_btcoex_IsBtDisabled(struct adapter *padapter)
 {
        if (!hal_btcoex_IsBtExist(padapter))
                return true;
index 939cb3e6b009ba897ab83bae2d0fa2b752b9c3ef..c514cb735afd339ca26866a817367f8d1285fd72 100644 (file)
@@ -173,7 +173,7 @@ void rtl8723b_HalDmWatchDog(struct adapter *Adapter)
        if (hw_init_completed == true) {
                u8 bLinked = false;
                u8 bsta_state = false;
-               u8 bBtDisabled = true;
+               bool bBtDisabled = true;
 
                if (rtw_linked_check(Adapter)) {
                        bLinked = true;
index 10f44ed72c0a4d5bab5ce29f192da1aa90f4dc39..6f7514be998f18fdcaba7b5b8b54ecfbf28e6a48 100644 (file)
@@ -23,7 +23,7 @@ void DBG_BT_INFO(u8 *dbgmsg);
 
 void hal_btcoex_SetBTCoexist(struct adapter *padapter, u8 bBtExist);
 u8 hal_btcoex_IsBtExist(struct adapter *padapter);
-u8 hal_btcoex_IsBtDisabled(struct adapter *);
+bool hal_btcoex_IsBtDisabled(struct adapter *);
 void hal_btcoex_SetChipType(struct adapter *padapter, u8 chipType);
 void hal_btcoex_SetPgAntNum(struct adapter *padapter, u8 antNum);
 void hal_btcoex_SetSingleAntPath(struct adapter *padapter, u8 singleAntPath);