From patchwork Thu Apr 14 15:18:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 8838621 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 002F9C0553 for ; Thu, 14 Apr 2016 15:22:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B22120256 for ; Thu, 14 Apr 2016 15:22:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1239420379 for ; Thu, 14 Apr 2016 15:22:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932718AbcDNPTR (ORCPT ); Thu, 14 Apr 2016 11:19:17 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35055 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932406AbcDNPTO (ORCPT ); Thu, 14 Apr 2016 11:19:14 -0400 Received: by mail-pa0-f43.google.com with SMTP id fs9so27006661pac.2; Thu, 14 Apr 2016 08:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O2SYxzCAy1B2NKKuPiY0LoIh7aNeHINbsPmNdQO7J68=; b=TXz561jG+n0c0IpH0FJj1iKyO1empiFEoErLTgsmBfNY9u2iVtcVRQEmZl4v4PeAAG c/bvOj2SbaDHKpftlnvKj4kxKyCV+3Z1r9+pZeQCNYFepsnaOAqD6g8KB1d7NHvdTjmU blQi0xFG+uiHlgz9ueNIHo/2Rs+a8lo/V+U0LtfMh7/KbEdj165k4RL3AhNRIyNJo9zx /nTWQ4+tcfJ6fTGxunV7eATHxB1x94iBS7C4y6ZpoywbC6uAxtrZLfKeD6IXJQzGYlYA v7N2OUer59So+hnC4WeB/y6f+elqpEkIcwxqsSFOG+sguWAOgXjgI1t0AgAcmgPALJBI yH/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=O2SYxzCAy1B2NKKuPiY0LoIh7aNeHINbsPmNdQO7J68=; b=SVFwGZOcEAPbW4ihdTBn2jqAqfTQtvf0oP17K8FKCUJThMyeYXnn+TPs3D6eiLT2DN UpcsoF8UKSNteEdKOMBAj1d9q6PuY6mOamneTszHUT1t+i4rAcNCNIKjivkKeaDoxjKz 8LfLoPfUsdrVN6glAWGg9IsXvwmWPlxHdoZixJ1WNg3ojDtMgMR5vPbynU1/rVjrSme+ PiXmJGdj8abX/ubLdzcE8f59iqXHScwGS5duzQmeXbtQU9i9UGPC4uYJOF30R6Pb/tuw 4hqbVbgx2opgoTMWr6pWcPcPuAoIoFvLhKtiRK/sVbzZkLAvF10wAXcGXMLyDkf/VpUf KARw== X-Gm-Message-State: AOPr4FWq1kizj58X2HAPkaq33GV7VrLd+pVetXe22g+JrrUR/1w8BURkeZSFJj8ZNPk5Dw== X-Received: by 10.66.138.16 with SMTP id qm16mr22090038pab.28.1460647153171; Thu, 14 Apr 2016 08:19:13 -0700 (PDT) Received: from localhost.localdomain ([103.24.124.194]) by smtp.gmail.com with ESMTPSA id ch2sm58792826pad.28.2016.04.14.08.19.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Apr 2016 08:19:12 -0700 (PDT) From: Sudip Mukherjee To: Johnny Kim , Austin Shin , Chris Park , Tony Cho , Glen Lee , Leo Kim , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Sudip Mukherjee Subject: [PATCH 2/2] staging: wilc1000: remove unused variables Date: Thu, 14 Apr 2016 20:48:49 +0530 Message-Id: <1460647129-22740-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460647129-22740-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1460647129-22740-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These variables were havnig the pointer returned by wiphy_priv() but they were never used. Signed-off-by: Sudip Mukherjee --- drivers/staging/wilc1000/linux_wlan.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 5643a3d..8cc8e8d 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -865,7 +865,6 @@ int wilc_mac_open(struct net_device *ndev) unsigned char mac_add[ETH_ALEN] = {0}; int ret = 0; int i = 0; - struct wilc_priv *priv; struct wilc *wl; vif = netdev_priv(ndev); @@ -876,7 +875,6 @@ int wilc_mac_open(struct net_device *ndev) return -ENODEV; } - priv = wiphy_priv(vif->ndev->ieee80211_ptr->wiphy); netdev_dbg(ndev, "MAC OPEN[%p]\n", ndev); ret = wilc_init_host_int(ndev); @@ -953,14 +951,10 @@ static struct net_device_stats *mac_stats(struct net_device *dev) static void wilc_set_multicast_list(struct net_device *dev) { struct netdev_hw_addr *ha; - struct wilc_priv *priv; - struct host_if_drv *hif_drv; struct wilc_vif *vif; int i = 0; - priv = wiphy_priv(dev->ieee80211_ptr->wiphy); vif = netdev_priv(dev); - hif_drv = (struct host_if_drv *)priv->hif_drv; if (dev->flags & IFF_PROMISC) return; @@ -1114,7 +1108,6 @@ static int mac_ioctl(struct net_device *ndev, struct ifreq *req, int cmd) s8 rssi; u32 size = 0, length = 0; struct wilc_vif *vif; - struct wilc_priv *priv; s32 ret = 0; struct wilc *wilc; @@ -1138,7 +1131,6 @@ static int mac_ioctl(struct net_device *ndev, struct ifreq *req, int cmd) return PTR_ERR(buff); if (strncasecmp(buff, "RSSI", length) == 0) { - priv = wiphy_priv(vif->ndev->ieee80211_ptr->wiphy); ret = wilc_get_rssi(vif, &rssi); netdev_info(ndev, "RSSI :%d\n", rssi);