Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp591908ybp; Fri, 4 Oct 2019 01:38:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk/PAr1l8GEIsJ8QgCPfXxzQuZ6+E7uTu+KwdCv46RZ1n/4vwGyQnvOB9/HWQJ08ZoAh6g X-Received: by 2002:aa7:c495:: with SMTP id m21mr14209977edq.287.1570178327802; Fri, 04 Oct 2019 01:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570178327; cv=none; d=google.com; s=arc-20160816; b=g3UX57VpOEMZhpv+37DNpjGbMjSYn7zLz9K99WbCEiPobrqWN+2ZbFa4Yif6W0j6zk CreQY/aU9WJ+V92+zhFxJROLVkzrNmwf4mpWRYOLxD3mC1DyALQM9EhBRVxmtYeQQ20y Jd5t1sqiKIHu+lgXkk1l9nhEchKGs2VVPrYwqHkgaxyTMvu1HqxacdF0tY71gEQB0frN TJGdwm+mzA9MLD6vEPwaUgpkYL4LpRDJ4GQisfrTEgYXLF2ce5440Bh/Z1lNVRyzPXZt yFfHJLH4K5lis3u4SZ3ITHQb6qzx+FAF7JFonyorAc74leOvi8w9napjeSP28ghS7lkP YBww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=0LFgtzCIKZDlJq5uRVfJ1EcRPka4Eu2xu0DpgC/czKw=; b=W2Idg00P+OrzVA1GMNGQXNk915ZIOgsZ+HjFDqY+hSqsRx2KzQhyeYSHfSX/QeGJte jYqO/FXgjuF0CgvYw+pw1Ofrpp+Iw/3+0ZhZ1HJeX6JRan3YyXRd3badw3hss0EXCk6n B72b+pyrMOdsekdgEbahrp63QNWTGFL6x3uHiz9JbCctULxs7wXYbBuVcaqvCSrhGVN/ 0vYZ3kWxeD4BKPhRCz2O+vInO0XeXkB9UuGwqpmr/7zsK2RVtuqonrBEZjdwBpbWiZlo QMdImszVRywjM7/WIYZe499NAj54TFOnyKRUMVMaXs46Nn69meFxkGQ//HOKFUA2zJzS EV7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si3265052edb.89.2019.10.04.01.38.23; Fri, 04 Oct 2019 01:38:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387599AbfJDIhG (ORCPT + 99 others); Fri, 4 Oct 2019 04:37:06 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43574 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731354AbfJDIhE (ORCPT ); Fri, 4 Oct 2019 04:37:04 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D817735762423652B4D8; Fri, 4 Oct 2019 16:36:52 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 4 Oct 2019 16:36:45 +0800 From: zhengbin To: , , , , , CC: Subject: [PATCH 7/8] rtlwifi: btcoex: Remove set but not used variables 'wifi_busy','bt_info_ext' Date: Fri, 4 Oct 2019 16:43:54 +0800 Message-ID: <1570178635-57582-8-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570178635-57582-1-git-send-email-zhengbin13@huawei.com> References: <1570178635-57582-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c: In function btc8723b1ant_tdma_dur_adj_for_acl: drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c:1428:7: warning: variable wifi_busy set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c: In function btc8723b1ant_tdma_dur_adj_for_acl: drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c:1427:22: warning: variable bt_info_ext set but not used [-Wunused-but-set-variable] 'wifi_busy' is not used since commit 158707f9584c ("rtlwifi: btcoex: Restore 23b 1ant routine for tdma adjustment") 'bt_info_ext' is not used since commit 2622d7d86a57 ("rtlwifi: btcoex: 23b 1ant: TDMA duration for ACL busy") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c index 5f57399..528e442 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c @@ -1424,17 +1424,11 @@ void btc8723b1ant_tdma_dur_adj_for_acl(struct btc_coexist *btcoexist, * -1: decrease WiFi duration */ s32 result; - u8 retry_count = 0, bt_info_ext; - bool wifi_busy = false; + u8 retry_count = 0; RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex], TdmaDurationAdjustForAcl()\n"); - if (wifi_status == BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY) - wifi_busy = true; - else - wifi_busy = false; - if ((wifi_status == BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN) || (wifi_status == BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN) || @@ -1472,7 +1466,6 @@ void btc8723b1ant_tdma_dur_adj_for_acl(struct btc_coexist *btcoexist, } else { /* acquire the BT TRx retry count from BT_Info byte2 */ retry_count = coex_sta->bt_retry_cnt; - bt_info_ext = coex_sta->bt_info_ext; if ((coex_sta->low_priority_tx) > 1050 || (coex_sta->low_priority_rx) > 1250) -- 2.7.4