Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10254912pxu; Tue, 29 Dec 2020 19:50:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZaMajQWNxLo9R5DdrfnhVbe48LlC+MpxQ24K8KLVYVG405F53Uv+5i4E+8VHhwt17YDqG X-Received: by 2002:a17:906:9345:: with SMTP id p5mr47208483ejw.40.1609300213255; Tue, 29 Dec 2020 19:50:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609300213; cv=none; d=google.com; s=arc-20160816; b=JqEBB5m9ww8wtGjgrjpEfp5rC8SwunRBm2MSRzNxPLVemU++rdMRZ5YUFG0NMpxQrl kJP1/3ZOVirAJKELMvQXDdwbJULmG0NGc6U4dN0PHJmn5jdVOsLqbCyadmjhdkCWzpQc LkLTICvmh4ovw6/VCQrY2epFViTF2IxtfGXBWJL7wtnl559YjWeCj3ETzUoYJglbFXPT Tf/rp+NtOe/l8XbZQaAQfA1mwVmWxp8Y+CpmLixxtrTKRYsygWxqxeA19UxfQhiWzsvm QpV7YxLbZHAW7Z9bJ+M0QjGdyNHq6UG/qxhrf8yj2Di2HhHVg/JdltrMiKYCz9Ticyft OAfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=uDiT35ruVmGoqyUhCaNH3cmyjjpr+uMpl2n20DGuZDU=; b=dWrkWlMrcWgAOctfADNLKXeTyAKGEVdH3/eJ2a8Z7qXDzwe5YJQE4Zyw4bvypqcBef C5cgZ0G6s9Zq9fyV4KztCv/vYtV6S5gyEH02yO5CvHF9QbFdKLYqo/00DrQw54lk92vc lXamZrKOFHjLVGkFwLlLppasb/aMb+557HrB+oCAkYW7vdFpGNXoKGDCXFV4hFtGWeLf GYMYCPFxTOUVmOIjTBLEDiT89omp10iiify1INTAzqqORNNafhvqj+IX+7TUjZzMjEKp 9+OPlaeNK3YOImBF2F4YOSQbf6ZwbPInnTdEJpHah4qDx3b+sNwupGq1xuMqcHPeApN+ l6Bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si25221224edv.445.2020.12.29.19.49.45; Tue, 29 Dec 2020 19:50:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726168AbgL3Dr6 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 29 Dec 2020 22:47:58 -0500 Received: from rtits2.realtek.com ([211.75.126.72]:40013 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbgL3Dr6 (ORCPT ); Tue, 29 Dec 2020 22:47:58 -0500 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 0BU3kxNqB019409, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmbs04.realtek.com.tw[172.21.6.97]) by rtits2.realtek.com.tw (8.15.2/2.70/5.88) with ESMTPS id 0BU3kxNqB019409 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 30 Dec 2020 11:46:59 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 30 Dec 2020 11:46:59 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 30 Dec 2020 11:46:58 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::ecca:80ca:53:e833]) by RTEXMBS04.realtek.com.tw ([fe80::ecca:80ca:53:e833%12]) with mapi id 15.01.2106.006; Wed, 30 Dec 2020 11:46:58 +0800 From: Pkshih To: Tian Tao , "tony0620emma@gmail.com" , "kvalo@codeaurora.org" , "davem@davemloft.net" , "kuba@kernel.org" CC: "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" Subject: RE: [PATCH] rtw88: coex: remove useless if and else Thread-Topic: [PATCH] rtw88: coex: remove useless if and else Thread-Index: AQHW2F4yxyUKKBxgKEKYnoZyzpOw4KoPCTkg Date: Wed, 30 Dec 2020 03:46:58 +0000 Message-ID: References: <1608640137-8914-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1608640137-8914-1-git-send-email-tiantao6@hisilicon.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.213] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Tian Tao [mailto:tiantao6@hisilicon.com] > Sent: Tuesday, December 22, 2020 8:29 PM > To: tony0620emma@gmail.com; kvalo@codeaurora.org; davem@davemloft.net; kuba@kernel.org > Cc: linux-wireless@vger.kernel.org; netdev@vger.kernel.org > Subject: [PATCH] rtw88: coex: remove useless if and else > > Fix the following coccinelle report: > drivers/net/wireless/realtek/rtw88/coex.c:1619:3-5: WARNING: > possible condition with no effect (if == else) > > Signed-off-by: Tian Tao > --- > drivers/net/wireless/realtek/rtw88/coex.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtw88/coex.c b/drivers/net/wireless/realtek/rtw88/coex.c > index 24530ca..df6676a 100644 > --- a/drivers/net/wireless/realtek/rtw88/coex.c > +++ b/drivers/net/wireless/realtek/rtw88/coex.c > @@ -1616,12 +1616,7 @@ static void rtw_coex_action_bt_relink(struct rtw_dev *rtwdev) > if (efuse->share_ant) { /* Shared-Ant */ > if (coex_stat->wl_gl_busy) { > table_case = 26; > - if (coex_stat->bt_hid_exist && > - coex_stat->bt_profile_num == 1) { > - tdma_case = 20; > - } else { > - tdma_case = 20; > - } > + tdma_case = 20; > } else { > table_case = 1; > tdma_case = 0; I found we miss something in these branches, so I sent a patch, namely "rtw88: coex: set 4 slot TDMA for BT link and WL busy", to fix it. The link is https://patchwork.kernel.org/project/linux-wireless/patch/20201230033602.13636-1-pkshih@realtek.com/ --- Ping-Ke