Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5210496ybi; Tue, 4 Jun 2019 03:09:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBEvsd4DHhUovIr00R09kdFThIODKIhNfjdpwAMCH8GyBRJfSc3KY2baEYZhWq6IhnH/F1 X-Received: by 2002:a17:902:4a:: with SMTP id 68mr35614823pla.235.1559642958826; Tue, 04 Jun 2019 03:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559642958; cv=none; d=google.com; s=arc-20160816; b=OBOmY568z234K9ld2Gg6uNOSEasde0wp5lvzqwjXlRLWrLC+tQ23dbdyj9h9Nl8REk sA2QQ4Au//IMHpfom0dIwHpcRWCPONjMGy6jVNimQ+cPFfqU3r/e9Zk38hzIc9ZzKYd6 H93i/76/o/wo/YuTbOrno/q48vOfdV8k4oi/Gm3+1jnho3RGl6jwXZ5nP5imGlDvITfK jJ+uq93na576HchEcA7oLIk/9+LU+hEqIIPw+VhUcSEGjT1/gOsJiwLaEXbZ9fBB9MN6 8kdCGx322Qpu/mecLsveJ35kf4SxXcNHLQCPCL5De0oDHiuQr3tKS7ZTEqYdMqXR8IA/ uO6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=A7RzDS7/tvQXUZXEymimpv5PsHNaqfpDysYgDPAwsAo=; b=huNeDY9+OmcJUSFXVHtPG5oGmUUIteG34NtDGli+I67lJ2UDid71tasI6kmZJknO9z 1ySwQllse5q9hGZq4y1GZst6jSwCw5f9knmsgCj3NMPiIvmEFxK7fT2oFQ8mBAhobBjq MrraijQCLHz/iIPTCI2vI+Xf0Ug3dMMdZPtezrDsZstR4nzZllRWrlbmI8SEGtrnHzds yfyamUGtRh/RGfSgqFsJkS4iOjEt+s7so0bgntyPlZe1PtBU0dfmAFQ7HZh0Aii2NzKu jXE+lB0mX4O1QoCepb9/x1uOOt7L+EqwkIxHwHyNmda24jVrMv0LVNW13w87m2bztqNF 1QoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Ozvzw/5Q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g63si22353616plb.362.2019.06.04.03.08.44; Tue, 04 Jun 2019 03:09:18 -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; dkim=pass header.i=@kernel.org header.s=default header.b="Ozvzw/5Q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727056AbfFDKGU (ORCPT + 99 others); Tue, 4 Jun 2019 06:06:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:37540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbfFDKGU (ORCPT ); Tue, 4 Jun 2019 06:06:20 -0400 Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com [149.6.153.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 81F9224B8B; Tue, 4 Jun 2019 10:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559642779; bh=MQoyrD6Bmiyjp0O8dCZV1jCQyA7pDR8Ab/0HZDHSids=; h=From:To:Cc:Subject:Date:From; b=Ozvzw/5QLu8sBRLN3nv5zjkJOt7hf5PbbBJyoq1yIC8v/rl3hqNhiYC53RJvtBf3u C2F9uvcQlNcCzwSg7uxbL/+e00NxJ8sdyWRa/lLaEiJYTLvR4bf9nRpCPoi7P56tSe MBpR/haEbtiqv+sU6jU4zO6JnHXRE6xfS5cDHSV0= From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, ryder.lee@mediatek.com, royluo@google.com Subject: [PATCH] mt76: mt7615: remove unused variable in mt7615_mcu_set_bcn Date: Tue, 4 Jun 2019 12:06:06 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Remove tim_len in mt7615_mcu_set_bcn since it is not actually used and ieee80211_beacon_get_tim checks if tim_length is NULL Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index 93b1501fbcda..d104435cd901 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -1130,10 +1130,10 @@ int mt7615_mcu_set_bcn(struct mt7615_dev *dev, struct ieee80211_vif *vif, /* pky_type: 0 for bcn, 1 for tim */ .pkt_type = 0, }; - u16 tim_off, tim_len; struct sk_buff *skb; + u16 tim_off; - skb = ieee80211_beacon_get_tim(mt76_hw(dev), vif, &tim_off, &tim_len); + skb = ieee80211_beacon_get_tim(mt76_hw(dev), vif, &tim_off, NULL); if (!skb) return -EINVAL; -- 2.21.0