Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4932103pxu; Tue, 22 Dec 2020 04:33:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJykFkeHJ3gDCdFb493L4Gyzq6S1KoZHhqEYvBcoVc+e1L4v00orDPYPwO01ZpKvE2tPW9FK X-Received: by 2002:a17:906:a011:: with SMTP id p17mr19293619ejy.30.1608640409049; Tue, 22 Dec 2020 04:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608640409; cv=none; d=google.com; s=arc-20160816; b=tjO7ByulBJaKgUeB1SLJPlTAbHS5SD97w662So5KwRDbn40IjYOkNCHopFnXS7pmai E+/+pRCQi188FR6uIFmdX9vWEfiHfK8WWWzxuMZUzpkunBOtqnCBz2jkQTyELCkokLRc 87KGuh9NgDzmfTrfpdwJ+HdteTx7PSU6zK3VC72mJC10iISot3NUlUdVbJzudwswJNGm pGj2xMGWzHK9XEhbg8Yh7RWOoC87BpfiJC7z9Bk7iABB3NuM50RBVZDbMOQCUM3v49Bk V0idgpJQCDv9qnOQTN7ujKLcliLHTDXeJr8lLztSP5FhtbIlm+JsJwMCpQrEmzv+8gai 3GfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=BYy5uRZJgRQsf2DqFRlvpDCeVr/DiS5dB0aABIbPg14=; b=Pp7bZULY5tx4nSPz0r7JyxvF8LSc+1DXypIzxg+Um4XDaJjvf16EcMk9ic1BfDll0K V2lFVc/ytUjTXm/3DNwi26M3rSz2ITIhxZikIJIirLE80qj9XPv7kQSJyaR/vJXmlnAU lN/pDGlBPQyIJLBiTJvlh0448hbzq4oP24iCatKlPudIhAaMAZRkE1K78/QlUSRHPbUO prgBc0+wJ5JlU2ugRaj2p6yMnGVGNQmKE+RlViZC47PAjOK7981XAcph6VGEeziuuY+v DCNIF3GfOjUgJNLLiKxu2QPghT5PrZNvRp1vv4rd6Z0GE9A0Vc2ty4vtOth8xPg0dB/0 dvlw== 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 ck16si12023594edb.36.2020.12.22.04.33.04; Tue, 22 Dec 2020 04:33:29 -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 S1726491AbgLVM3h (ORCPT + 99 others); Tue, 22 Dec 2020 07:29:37 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:9470 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgLVM3h (ORCPT ); Tue, 22 Dec 2020 07:29:37 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4D0bGW4SyJzhvMR; Tue, 22 Dec 2020 20:28:19 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Tue, 22 Dec 2020 20:28:52 +0800 From: Tian Tao To: , , , CC: , Subject: [PATCH] rtw88: coex: remove useless if and else Date: Tue, 22 Dec 2020 20:28:57 +0800 Message-ID: <1608640137-8914-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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; -- 2.7.4