Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3591960ybc; Mon, 18 Nov 2019 18:14:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwiu+U3Mt9PyBQsX2NIyu6hY2n5bG5Npep76ymxqQfuxlWPkZC0ZLiO/CK8vt0Gw4LZPb0X X-Received: by 2002:a17:906:4096:: with SMTP id u22mr30992832ejj.264.1574129645462; Mon, 18 Nov 2019 18:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574129645; cv=none; d=google.com; s=arc-20160816; b=Pj9AuxjxjL+rB29Q0rlVC/Kb+/KHIjDnWi1ekwE/uYtX6rU9OGZX5l8DDVwn6VwW7n Va9ElP3kty8DdYfKAZrJ4cVrmob4u51B81c3qXOo8Cy38n/R3K+jQlV2l4xbiRcN+Gs4 R3kYxBp95bfWkcHSJS9PMCkbt5p+f+sxFsitLohgxcnpEf6/67KGsUOOm5oJkFW3less ciW9HPNTEOXxtJ4Ly0J1oOS1iPpnd7fjG7eWq6Nyp+mT4rEtn9RNOYVn8O3xul52dzeO 1009I2HIipJwM5WHuWsKNp2ZpKps5AZKURgnilc8xHH6iEWlARE+DeWQj8e2FkptlIIp cKcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=JbNaM8PoxFh56ZPE0IWnAkdxci9fgsghbztXO4VG4J4=; b=tuwYvqzPCebr4qP+hQT0f66OnSn9XSbCHrhSLOiedDoAOBYe236EJa+wqVrHeJJ0Bb BoZQG6WoeMsBSG+59sGJdo3/HnAt3I0qJg/MH+QyZamKKXC43sKVEy2MOd27RIablnkR iUK1ascdnPzwswDHpzICVaqEc1ktSrtDP78PcY4snN9pzrVIJiotVi7c8NHBcP72X2nG bqfAEJB0GfFKqCgFzfxwn/wCmAY7w+fmTYRi7n7ZFm7v9NnKGsR7iTR2a8L4rQbQE3O1 rfxTl4KONFXDX4d9UGugpdiZz1qoXQ5RG7MAKdqsZ8oe8gK8Syx8gFTCzfMegn1R1WtC zjaA== 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 rv3si12839759ejb.249.2019.11.18.18.13.36; Mon, 18 Nov 2019 18:14:05 -0800 (PST) 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 S1727114AbfKSCKj (ORCPT + 99 others); Mon, 18 Nov 2019 21:10:39 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:43920 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726761AbfKSCKi (ORCPT ); Mon, 18 Nov 2019 21:10:38 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 205AC7CEF21CBFBB844E; Tue, 19 Nov 2019 10:10:36 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 19 Nov 2019 10:10:25 +0800 From: zhengbin To: , , , , CC: Subject: [PATCH -next] rtl8xxxu: Remove set but not used variable 'vif','dev','len' Date: Tue, 19 Nov 2019 10:17:43 +0800 Message-ID: <1574129863-121223-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 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/rtl8xxxu/rtl8xxxu_core.c: In function rtl8xxxu_c2hcmd_callback: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:5396:24: warning: variable vif set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function rtl8xxxu_c2hcmd_callback: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:5397:17: warning: variable dev set but not used [-Wunused-but-set-variable] drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function rtl8xxxu_c2hcmd_callback: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:5400:6: warning: variable len set but not used [-Wunused-but-set-variable] It is introduced by commit e542e66b7c2e ("rtl8xxxu: add bluetooth co-existence support for single antenna"), but never used, so remove it. Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 1d94cab..aa2bb2a 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5393,18 +5393,13 @@ static void rtl8xxxu_c2hcmd_callback(struct work_struct *work) { struct rtl8xxxu_priv *priv; struct rtl8723bu_c2h *c2h; - struct ieee80211_vif *vif; - struct device *dev; struct sk_buff *skb = NULL; unsigned long flags; - int len; u8 bt_info = 0; struct rtl8xxxu_btcoex *btcoex; priv = container_of(work, struct rtl8xxxu_priv, c2hcmd_work); - vif = priv->vif; btcoex = &priv->bt_coex; - dev = &priv->udev->dev; if (priv->rf_paths > 1) goto out; @@ -5415,7 +5410,6 @@ static void rtl8xxxu_c2hcmd_callback(struct work_struct *work) spin_unlock_irqrestore(&priv->c2hcmd_lock, flags); c2h = (struct rtl8723bu_c2h *)skb->data; - len = skb->len - 2; switch (c2h->id) { case C2H_8723B_BT_INFO: -- 2.7.4