From nobody Mon Feb 9 07:19:35 2026 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 187E328FD for ; Sat, 5 Apr 2025 00:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743812149; cv=none; b=Ph39Zad8sH8tUBv6K3uMnPNL7llVFvhIOLHApaFuhb7Cc7mOQHrivgMuAdfx0b1SUbrIKO3Ou62toHakHKZQptItB2ttlr1DVoqKw3QBW1GfK3v0p5Y9PXmyEXj5zk04Sb0IAZr3xf1G1kK4tLrk0LqU5Fn1+e9AKnn7VW4gQyM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743812149; c=relaxed/simple; bh=zBXvbJVFsM+DJctt5dKPj9OUxJmRvy3LzHiOTc/5NQs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=FqCIM/gnIiorWH26S+62DAi0TpRU81SY0Ph9YIlyrI7Bq6QbomULiF9WqB2pM2NR4hTxo2xw3T2BiAqilCl1n2nkIR2A7+KU8qIsKklKKDvUfbgp7o4fel/5IOytcuBv/SU/Ic9zm+ky98zbBOthqysUkDU6IZieS9s2hU9gqzg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=av40Aigd; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="av40Aigd" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5e686d39ba2so4835495a12.2 for ; Fri, 04 Apr 2025 17:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743812145; x=1744416945; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=5xTtg+mAJ2fpLJdIdN6Zq1vsq0Prz2ppkHTo+TZQdms=; b=av40AigdAH6/x6O/bEECazBjp3Ubp4LCUKaciPXPBAO5DDE0dOvwz5qWxMkeL57LN2 3mWkGoYxzelbukBtIPgpznBXyYDscRHnxJ8uyI6cCET8+J8qAlF83WrQbmFJzy0ztnl4 qPqYL+TkASrBPi5Dk+WqIopApkNs/pBCf5ausKbC/ill9g7y+zP4OIVcq5nJzflkbPlr G0CnHfH6XLWtQdNvAfJ9qrFgAvfqJL+wdSJphubuKu1u4PVf0vA21mxH+Pl1qJoMiWoP jPbhSByYex/jLLfksipCpOAXSTLJPE77Ld4ygnFuFCGOJrWynGCKQXawGZ4AqGRjTaiZ 31gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743812145; x=1744416945; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5xTtg+mAJ2fpLJdIdN6Zq1vsq0Prz2ppkHTo+TZQdms=; b=lwMwKvJO5zxmkI+vkxqpiRaxHLemq4ixIYH3UTTbu/+QLjl2MoTSG5UcDCYwdGMAez jxmNe1AraOVThoZ+xOB9rVcKPVA/YUcWWfN0TvzEw+Y851hR41upca1ZDP7Ea6TS103E 4m2qPXeTVdRhGeziS0Hr22muS54d7Fq83mObIy1Yn9nRyp1WyHxa1LXX+5VXLT6FBFsI Dk27ZnPoeUJc9XxAetS7SLVvcm4/aZI198lVSBaQbkMiNkchIdeO8Gpd43jx0P6xLh0v jpc0MVZ0yUPY22TViad32ApbjmKc42Q9olxfHYpseui2eOq1cyh4NG4Gmu4fOZweKmNB UyOw== X-Forwarded-Encrypted: i=1; AJvYcCWSxOsUNrh5A89wzILw5C452Tv8Z8zOW951JIcrxqLZoktTMIvFj7+s6DNn36DHtCyIH5gaQMFz8NWzjTA=@vger.kernel.org X-Gm-Message-State: AOJu0Yzeu25VBbzHlIIwpIxUzUdPJpkJPYYAEL4fu5A6p01nIaPxIEdp Ay7p/Wl1ajs6B+DX2Fwu7xstEb2l2SDC57cJgZl2w97rUkJPosDF3mGOlkWQ X-Gm-Gg: ASbGncvEVH/lr8/x53zXtPXLEZyS6xHnxWpKShj4p8ABeVhykENQiTI4VJJPAlVx0kT +pYOfEIohfP9zQbJSqyydBaoceTcodr4yPODY2i0Cp7lElmhLpOqQ8mzZT2g/70lUr+0GFTHYru 5lnOxBn8y2WyE01P85sxzUc4ac1A6v8QubQrTA/DBLTPbLtrz37910rFPnSroGgzrtlOFuHax6f PXdeQfTl1JUZ1msQY7BVMQIe1BjX4aBSv6/KT7lW0QIEbORee+u76DKl0axNMN4Lvhj9JkwMTSQ De/eS3BVO1GLrbyLM8VkCJFYgvxDPX9UH5Gz1xJvX4/hOyHzw4wLAbVle2Sy X-Google-Smtp-Source: AGHT+IHq1CJJcCsvwnYrK1u3ewkc/0Fj0LNRfvcd/0mOcxsiRXkA1u3j4XRx4+gCrfZQFr6Ywrab6w== X-Received: by 2002:a17:907:3f24:b0:ac7:7f14:f31b with SMTP id a640c23a62f3a-ac7d1824971mr502252966b.3.1743812144817; Fri, 04 Apr 2025 17:15:44 -0700 (PDT) Received: from ubuntu ([105.112.234.193]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac7c013e018sm329238966b.115.2025.04.04.17.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Apr 2025 17:15:44 -0700 (PDT) Date: Sat, 5 Apr 2025 00:15:42 +0000 From: Abraham Samuel Adekunle To: Greg Kroah-Hartman , julia.lawall@inria.fr, outreachy@lists.linux.dev Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: Place constants on right side of comparison Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Modify comparisons to place constants on the right hand side of expression thereby following Linux kernel coding conventions. Found and transformed by Coccinelle. Semantic patch used for matching and transformation: @@ constant K; expression E; @@ - K =3D=3D E + E =3D=3D K Signed-off-by: Abraham Samuel Adekunle --- .../staging/rtl8723bs/hal/HalBtc8723b2Ant.c | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c b/drivers/stag= ing/rtl8723bs/hal/HalBtc8723b2Ant.c index c1c7b5cc17a7..d32dbf94858f 100644 --- a/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c +++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c @@ -1100,7 +1100,7 @@ static bool halbtc8723b2ant_IsCommonAction(struct btc= _coexist *pBtCoexist) =20 bCommon =3D true; } else { - if (BT_8723B_2ANT_BT_STATUS_NON_CONNECTED_IDLE =3D=3D pCoexDm->btStatus)= { + if (pCoexDm->btStatus =3D=3D BT_8723B_2ANT_BT_STATUS_NON_CONNECTED_IDLE)= { bLowPwrDisable =3D false; pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwr= Disable); halbtc8723b2ant_LimitedRx(pBtCoexist, NORMAL_EXEC, false, false, 0x8); @@ -1115,7 +1115,7 @@ static bool halbtc8723b2ant_IsCommonAction(struct btc= _coexist *pBtCoexist) halbtc8723b2ant_SwMechanism2(pBtCoexist, false, false, false, 0x18); =20 bCommon =3D true; - } else if (BT_8723B_2ANT_BT_STATUS_CONNECTED_IDLE =3D=3D pCoexDm->btStat= us) { + } else if (pCoexDm->btStatus =3D=3D BT_8723B_2ANT_BT_STATUS_CONNECTED_ID= LE) { bLowPwrDisable =3D true; pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwr= Disable); =20 @@ -1605,7 +1605,7 @@ static void halbtc8723b2ant_ActionSco(struct btc_coex= ist *pBtCoexist) =20 pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); =20 - if (BTC_WIFI_BW_LEGACY =3D=3D wifiBw) /* for SCO quality at 11b/g mode */ + if (wifiBw =3D=3D BTC_WIFI_BW_LEGACY) /* for SCO quality at 11b/g mode */ halbtc8723b2ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2); else /* for SCO quality & wifi performance balance at 11n mode */ halbtc8723b2ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 8); @@ -1613,7 +1613,7 @@ static void halbtc8723b2ant_ActionSco(struct btc_coex= ist *pBtCoexist) halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 0); /* for voice q= uality */ =20 /* sw mechanism */ - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -1660,7 +1660,7 @@ static void halbtc8723b2ant_ActionHid(struct btc_coex= ist *pBtCoexist) =20 pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); =20 - if (BTC_WIFI_BW_LEGACY =3D=3D wifiBw) /* for HID at 11b/g mode */ + if (wifiBw =3D=3D BTC_WIFI_BW_LEGACY) /* for HID at 11b/g mode */ halbtc8723b2ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 7); else /* for HID quality & wifi performance balance at 11n mode */ halbtc8723b2ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 9); @@ -1674,7 +1674,7 @@ static void halbtc8723b2ant_ActionHid(struct btc_coex= ist *pBtCoexist) halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 13); =20 /* sw mechanism */ - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -1723,7 +1723,7 @@ static void halbtc8723b2ant_ActionA2dp(struct btc_coe= xist *pBtCoexist) =20 /* sw mechanism */ pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { halbtc8723b2ant_SwMechanism1(pBtCoexist, true, false, false, false); halbtc8723b2ant_SwMechanism2(pBtCoexist, true, false, true, 0x18); } else { @@ -1755,7 +1755,7 @@ static void halbtc8723b2ant_ActionA2dp(struct btc_coe= xist *pBtCoexist) =20 /* sw mechanism */ pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -1805,7 +1805,7 @@ static void halbtc8723b2ant_ActionA2dpPanHs(struct bt= c_coexist *pBtCoexist) =20 /* sw mechanism */ pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -1861,7 +1861,7 @@ static void halbtc8723b2ant_ActionPanEdr(struct btc_c= oexist *pBtCoexist) =20 /* sw mechanism */ pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -1912,7 +1912,7 @@ static void halbtc8723b2ant_ActionPanHs(struct btc_co= exist *pBtCoexist) halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 1); =20 pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -1964,7 +1964,7 @@ static void halbtc8723b2ant_ActionPanEdrA2dp(struct b= tc_coexist *pBtCoexist) (btRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) ) { halbtc8723b2ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 12); - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) halbtc8723b2ant_TdmaDurationAdjust(pBtCoexist, false, true, 3); else halbtc8723b2ant_TdmaDurationAdjust(pBtCoexist, false, false, 3); @@ -1974,7 +1974,7 @@ static void halbtc8723b2ant_ActionPanEdrA2dp(struct b= tc_coexist *pBtCoexist) } =20 /* sw mechanism */ - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -2019,7 +2019,7 @@ static void halbtc8723b2ant_ActionPanEdrHid(struct bt= c_coexist *pBtCoexist) (btRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (btRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) ) { - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { halbtc8723b2ant_FwDacSwingLvl(pBtCoexist, NORMAL_EXEC, 3); halbtc8723b2ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 11); pBtCoexist->fBtcSetRfReg(pBtCoexist, BTC_RF_A, 0x1, 0xfffff, 0x780); @@ -2037,7 +2037,7 @@ static void halbtc8723b2ant_ActionPanEdrHid(struct bt= c_coexist *pBtCoexist) } =20 /* sw mechanism */ - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -2090,7 +2090,7 @@ static void halbtc8723b2ant_ActionHidA2dpPanEdr(struc= t btc_coexist *pBtCoexist) (btRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (btRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) ) { - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) halbtc8723b2ant_TdmaDurationAdjust(pBtCoexist, true, true, 2); else halbtc8723b2ant_TdmaDurationAdjust(pBtCoexist, true, false, 3); @@ -2098,7 +2098,7 @@ static void halbtc8723b2ant_ActionHidA2dpPanEdr(struc= t btc_coexist *pBtCoexist) halbtc8723b2ant_TdmaDurationAdjust(pBtCoexist, true, true, 3); =20 /* sw mechanism */ - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -2140,7 +2140,7 @@ static void halbtc8723b2ant_ActionHidA2dp(struct btc_= coexist *pBtCoexist) halbtc8723b2ant_FwDacSwingLvl(pBtCoexist, NORMAL_EXEC, 6); =20 pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); - if (BTC_WIFI_BW_LEGACY =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_LEGACY) { if (BTC_RSSI_HIGH(btRssiState)) halbtc8723b2ant_DecBtPwr(pBtCoexist, NORMAL_EXEC, 2); else if (BTC_RSSI_MEDIUM(btRssiState)) @@ -2173,7 +2173,7 @@ static void halbtc8723b2ant_ActionHidA2dp(struct btc_= coexist *pBtCoexist) halbtc8723b2ant_TdmaDurationAdjust(pBtCoexist, true, true, 2); =20 /* sw mechanism */ - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) { + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) { if ( (wifiRssiState =3D=3D BTC_RSSI_STATE_HIGH) || (wifiRssiState =3D=3D BTC_RSSI_STATE_STAY_HIGH) @@ -2391,12 +2391,12 @@ void EXhalbtc8723b2ant_InitCoexDm(struct btc_coexis= t *pBtCoexist) =20 void EXhalbtc8723b2ant_IpsNotify(struct btc_coexist *pBtCoexist, u8 type) { - if (BTC_IPS_ENTER =3D=3D type) { + if (type =3D=3D BTC_IPS_ENTER) { pCoexSta->bUnderIps =3D true; halbtc8723b2ant_WifiOffHwCfg(pBtCoexist); halbtc8723b2ant_IgnoreWlanAct(pBtCoexist, FORCE_EXEC, true); halbtc8723b2ant_CoexAllOff(pBtCoexist); - } else if (BTC_IPS_LEAVE =3D=3D type) { + } else if (type =3D=3D BTC_IPS_LEAVE) { pCoexSta->bUnderIps =3D false; halbtc8723b2ant_InitHwConfig(pBtCoexist, false); halbtc8723b2ant_InitCoexDm(pBtCoexist); @@ -2406,24 +2406,24 @@ void EXhalbtc8723b2ant_IpsNotify(struct btc_coexist= *pBtCoexist, u8 type) =20 void EXhalbtc8723b2ant_LpsNotify(struct btc_coexist *pBtCoexist, u8 type) { - if (BTC_LPS_ENABLE =3D=3D type) { + if (type =3D=3D BTC_LPS_ENABLE) { pCoexSta->bUnderLps =3D true; - } else if (BTC_LPS_DISABLE =3D=3D type) { + } else if (type =3D=3D BTC_LPS_DISABLE) { pCoexSta->bUnderLps =3D false; } } =20 void EXhalbtc8723b2ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type) { - if (BTC_SCAN_START =3D=3D type) { - } else if (BTC_SCAN_FINISH =3D=3D type) { + if (type =3D=3D BTC_SCAN_START) { + } else if (type =3D=3D BTC_SCAN_FINISH) { } } =20 void EXhalbtc8723b2ant_ConnectNotify(struct btc_coexist *pBtCoexist, u8 ty= pe) { - if (BTC_ASSOCIATE_START =3D=3D type) { - } else if (BTC_ASSOCIATE_FINISH =3D=3D type) { + if (type =3D=3D BTC_ASSOCIATE_START) { + } else if (type =3D=3D BTC_ASSOCIATE_FINISH) { } } =20 @@ -2436,11 +2436,11 @@ void EXhalbtc8723b2ant_MediaStatusNotify(struct btc= _coexist *pBtCoexist, u8 type =20 /* only 2.4G we need to inform bt the chnl mask */ pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, &wifiCentra= lChnl); - if ((BTC_MEDIA_CONNECT =3D=3D type) && (wifiCentralChnl <=3D 14)) { + if ((type =3D=3D BTC_MEDIA_CONNECT) && (wifiCentralChnl <=3D 14)) { H2C_Parameter[0] =3D 0x1; H2C_Parameter[1] =3D wifiCentralChnl; pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); - if (BTC_WIFI_BW_HT40 =3D=3D wifiBw) + if (wifiBw =3D=3D BTC_WIFI_BW_HT40) H2C_Parameter[2] =3D 0x30; else { pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U1_AP_NUM, &apNum); @@ -2573,9 +2573,9 @@ void EXhalbtc8723b2ant_BtInfoNotify( } =20 if ( - (BT_8723B_2ANT_BT_STATUS_ACL_BUSY =3D=3D pCoexDm->btStatus) || - (BT_8723B_2ANT_BT_STATUS_SCO_BUSY =3D=3D pCoexDm->btStatus) || - (BT_8723B_2ANT_BT_STATUS_ACL_SCO_BUSY =3D=3D pCoexDm->btStatus) + (pCoexDm->btStatus =3D=3D BT_8723B_2ANT_BT_STATUS_ACL_BUSY) || + (pCoexDm->btStatus =3D=3D BT_8723B_2ANT_BT_STATUS_SCO_BUSY) || + (pCoexDm->btStatus =3D=3D BT_8723B_2ANT_BT_STATUS_ACL_SCO_BUSY) ) { bBtBusy =3D true; bLimitedDig =3D true; @@ -2603,8 +2603,8 @@ void EXhalbtc8723b2ant_HaltNotify(struct btc_coexist = *pBtCoexist) =20 void EXhalbtc8723b2ant_PnpNotify(struct btc_coexist *pBtCoexist, u8 pnpSta= te) { - if (BTC_WIFI_PNP_SLEEP =3D=3D pnpState) { - } else if (BTC_WIFI_PNP_WAKE_UP =3D=3D pnpState) { + if (pnpState =3D=3D BTC_WIFI_PNP_SLEEP) { + } else if (pnpState =3D=3D BTC_WIFI_PNP_WAKE_UP) { halbtc8723b2ant_InitHwConfig(pBtCoexist, false); halbtc8723b2ant_InitCoexDm(pBtCoexist); halbtc8723b2ant_QueryBtInfo(pBtCoexist); --=20 2.34.1