Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp593243ybp; Fri, 4 Oct 2019 01:40:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKAS1ZA6+87H7LD5iZrT64RdpdpM6u6K62BkVhi0/OkTxKp6eK1VHS+p9zjbN7JcaxLVn1 X-Received: by 2002:a17:906:168f:: with SMTP id s15mr11275859ejd.109.1570178427513; Fri, 04 Oct 2019 01:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570178427; cv=none; d=google.com; s=arc-20160816; b=nr2f/3oCgQh+Dwlw/PRdTuYvynOaIsg8yCJeEtuiLoxfaX5LsgSxWcBUUgATMZ4S4z ZULopNZ3S+a/wAmhcp7o5xEcmZ7DkUq12A1ciKzQM6kTuXi7lR6mjsKOppEbdVKDL9AW 9A6OsvGGvSupxddG75Nsg7TKcDj1GWkUoSDr3QQ9eo9T2JzsJTpeqTRHtwwTYIPCXTjv OSIhKwJR/hDlbp4zht0AO7N4LQEFxfGmBx6+n7VAPiEWsTRA7yFECbGaE0crMNGdsN6G DoMm4lK3EWjiicJEmGmHrQUfhuD+9d44iG1fr8TsoVNk0apvy3xNvwFnM5h6M9uw4EZZ XPMg== 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=kcQl+BhPcMYMyaCPv9qZ+tfC5wjoP1aDEIrszC9GMYQ=; b=eaTlHZUh7Ja4SqGOJKs9qQr5ZdNkCmQvZWotA1t8gRiZXERgRGUx7zpNA/f4Jy/29A QHWfb0KnRQL1ADll2LcU0nvkj3lmmArZ2vkpHpAttWd160GHaiR73uCdRsz5g1xiyiv7 ZXMcK5eAhNW1lVMEYmJr7ZdoWpvSor8Xr6ouLYrgzkVpVBtxUv1tB6cd70pUvoC9q9H7 8rmkj+YtJwfTSWveyrF65AcIDzOYmUKx32LhaStZFCBX51aT2B229dxZOpkrw9S9aB+x 9sFtbzzDHLli8vtSp/SBu3ZfIh6wQqRfJCQUbTBaMCCrYcJcGHA3P06AnapaN056j7Nm UwSw== 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 d58si3208587eda.62.2019.10.04.01.40.02; Fri, 04 Oct 2019 01:40:27 -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 S2387556AbfJDIhE (ORCPT + 99 others); Fri, 4 Oct 2019 04:37:04 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43576 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729994AbfJDIg7 (ORCPT ); Fri, 4 Oct 2019 04:36:59 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 03FB4D4B44CE81B90E00; Fri, 4 Oct 2019 16:36:53 +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 6/8] rtlwifi: btcoex: Remove set but not used variable 'result' Date: Fri, 4 Oct 2019 16:43:53 +0800 Message-ID: <1570178635-57582-7-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/halbtc8192e2ant.c: In function btc8192e2ant_tdma_duration_adjust: drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:1584:6: warning: variable result set but not used [-Wunused-but-set-variable] It is not used since commit 27a31a60a4de ("rtlwifi: btcoex: remove unused functions") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c index 3ebc7c9..3c96c32 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c @@ -1578,10 +1578,6 @@ static void btc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, { struct rtl_priv *rtlpriv = btcoexist->adapter; static int up, dn, m, n, wait_cnt; - /* 0: no change, +1: increase WiFi duration, - * -1: decrease WiFi duration - */ - int result; u8 retry_cnt = 0; RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, @@ -1669,7 +1665,6 @@ static void btc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, dn = 0; m = 1; n = 3; - result = 0; wait_cnt = 0; } else { /* accquire the BT TRx retry count from BT_Info byte2 */ @@ -1679,7 +1674,6 @@ static void btc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex], up=%d, dn=%d, m=%d, n=%d, wait_cnt=%d\n", up, dn, m, n, wait_cnt); - result = 0; wait_cnt++; /* no retry in the last 2-second duration */ if (retry_cnt == 0) { @@ -1694,7 +1688,6 @@ static void btc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, n = 3; up = 0; dn = 0; - result = 1; RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex]Increase wifi duration!!\n"); } @@ -1718,7 +1711,6 @@ static void btc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, up = 0; dn = 0; wait_cnt = 0; - result = -1; RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "Reduce wifi duration for retry<3\n"); } @@ -1735,7 +1727,6 @@ static void btc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, up = 0; dn = 0; wait_cnt = 0; - result = -1; RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "Decrease wifi duration for retryCounter>3!!\n"); } -- 2.7.4