From patchwork Sun Nov 26 05:38:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kenneth Lu X-Patchwork-Id: 10075235 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 77FAC60211 for ; Sun, 26 Nov 2017 05:41:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60E9028E9C for ; Sun, 26 Nov 2017 05:41:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 552F228EDD; Sun, 26 Nov 2017 05:41:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAB9828E9C for ; Sun, 26 Nov 2017 05:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751013AbdKZFiX (ORCPT ); Sun, 26 Nov 2017 00:38:23 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:36779 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbdKZFiW (ORCPT ); Sun, 26 Nov 2017 00:38:22 -0500 Received: by mail-pl0-f66.google.com with SMTP id b12so6562667plm.3 for ; Sat, 25 Nov 2017 21:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=z7qXoWZuoUD2oXwFrWusJvv8gYVhU1nKJf4pdaIPbuM=; b=XfbBHZN9x7HggYUPlrK4wTw5VAO5L5/eLL5Fpdmhfl713I1zqVV+0ns2hCPtcLWVw4 DNeE/lS+qdNGckGERnMW8U+N4sPCRHf7xC3Hfj/BhyJBtvNxhKOmZAXevFjuik1Tox7e wWVstPfhtln9vTNOUoN46EsF0MZ6IFwMi3wDosQNaAbfoEj3BSlZKVcwJuxFwrdbHCSp q55XHt4Le+Dr2PIZ6Yb1+5irCCm/V5vo76xjHYO2aVyDCxtn9GlOn2K69x2Zc9plOfRV 9tYBNn819ZDpURzJLc+RPiTLRFIQY6kzoACTOPcMGWKYo7fcOq/V9P2Glbnumlo0o/aC c+wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=z7qXoWZuoUD2oXwFrWusJvv8gYVhU1nKJf4pdaIPbuM=; b=uMMMNW09XnFWcdNlGa2EpG7A+gVHkMFwXefO/j44YMPP/0PF73r0GaknO4I8f7TUUN KAyS1nKUHsW7bqUd4BctusgS9yMWOa74Q9wyabhHM8LZtXutS2onZpms7em5ToyVFrXn /prZufUmX8wYAfnK5co+dTUAeR81QR1fZGfa3DgdwdtS8RQPPKjzzmHSqB9DFw1UEFou wkrRrhP4DTBan3TZdSgMEJvo+XRFemrX9B6i/X6vktQVX/Q+k7m1cxMcNjoh2I6HHwtB XOhcMxt5kVCklZUYvbuiQUCsb1kIhpI9W0AiGYJ55qR7dJZMfnsDne9m1wdDB1m82BDk oosg== X-Gm-Message-State: AJaThX5i6amKo7HoLbinIMqOkiuBGx1yW/f6DWNLCvNrsfIXfr+g90rX CwcYGh8pReEVRNNb2of29GY= X-Google-Smtp-Source: AGs4zMaE2keTOawobPjc+8L6Q8bZKTH94/nH693YdxDzmCuxwZwdbiAFQKtuDNd8AIiI5dMSuHZCgA== X-Received: by 10.84.238.193 with SMTP id l1mr34265928pln.106.1511674701810; Sat, 25 Nov 2017 21:38:21 -0800 (PST) Received: from blackstone (220-133-32-83.HINET-IP.hinet.net. [220.133.32.83]) by smtp.gmail.com with ESMTPSA id w73sm38530035pfd.86.2017.11.25.21.38.20 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Nov 2017 21:38:21 -0800 (PST) Date: Sun, 26 Nov 2017 13:38:18 +0800 From: Kenneth Lu To: kvalo@qca.qualcomm.com Cc: linux-wireless@vger.kernel.org, ath6kl@lists.infradead.org Subject: [PATCH] ath6kl: remove redundant variable ies_len Message-ID: <20171126053818.GA6602@blackstone> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To get rid of W=1 warning: variable ‘ies_len’ set but not used. Variable ies_len is being assigned but never read. Signed-off-by: Kenneth Lu Reviewed-by: Steve deRosier --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index b53eb2b..2ba8cf3 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c @@ -2766,7 +2766,6 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev, struct ieee80211_mgmt *mgmt; bool hidden = false; u8 *ies; - int ies_len; struct wmi_connect_cmd p; int res; int i, ret; @@ -2804,7 +2803,6 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev, ies = mgmt->u.beacon.variable; if (ies > info->beacon.head + info->beacon.head_len) return -EINVAL; - ies_len = info->beacon.head + info->beacon.head_len - ies; if (info->ssid == NULL) return -EINVAL;