From patchwork Mon Mar 28 04:55:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8677921 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 BAF7EC0553 for ; Mon, 28 Mar 2016 04:56:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CBA3620251 for ; Mon, 28 Mar 2016 04:56:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED0582024C for ; Mon, 28 Mar 2016 04:56:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753939AbcC1E4U (ORCPT ); Mon, 28 Mar 2016 00:56:20 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34073 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751643AbcC1E4S (ORCPT ); Mon, 28 Mar 2016 00:56:18 -0400 Received: by mail-pf0-f194.google.com with SMTP id n5so19126568pfn.1 for ; Sun, 27 Mar 2016 21:56:18 -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=fAAUiUC0x9CygRJu4ptwDgdFQwb6plSkfjy5EHiY3wg=; b=vaHlV3vuZyu0f4UCpS8Z3qFGuBnpSUmMHRSlQ5OUD5lp+1+13pLNjqGWP8/uoIkO7M 3nbvlo1P582ETL1MMuKhHlJHBnvXboaOBxxtoTY697Mhq/n+JHs4zzak+Wio79CnB4id oP71vEvKHvfOWlJhuMrY2ORE7cjIUCHW0+fhjYvopduZ+kjUNcms1fVy1/b6xNqcITNu yzyWct3hCu6EMQCZmnKgUCbBbIKPMnYT0FgLjLj92fUoS886tJh7R2wXHiTUXOtqUtq8 /U3WefSewO4MLTH8s0+E1/6gO/a/XlBlPjLU1lu5+i6FXWGsXQ8wbOWrog9c4SvEZzZz VMWg== 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=fAAUiUC0x9CygRJu4ptwDgdFQwb6plSkfjy5EHiY3wg=; b=ETSNkaJ2aJa6mWhBZjY7hziOqejuXMzR8F9Q1fNnR64LT2ytAH4epO1hcG8BopDXFt gaWp4q2a2YbWoBwilo1YQsfEY+cyabk7CTzdHGZniIp218TUQGkYAcuOhxuXhx5mD0uR 4VAbm411Gow6SRductR9zNSQoN1y9HyLWLsyzKfJB9mjHyn44n4sf7mnnQVhFeZPFz0Z lc6HJRY6PNvnWXJEMAb44jR/KsX/yAlDJMUnEM6JgxGpWIQgK6eQTrWtxmInxb3Kbtt4 BBdA7pwIw8G7ZScwEbivz9yZTKz8pM681+FV7qu71zaxm4jp37qLFz+zX2FvZVvaRYTi HEwQ== X-Gm-Message-State: AD7BkJIiCcrqWJr6O7Tz1t8wjoo4HbfFGwZCUU48SZgqVuowk0t3R5IJCGv+5yrVkdtovQ== X-Received: by 10.98.8.74 with SMTP id c71mr40273102pfd.155.1459140978015; Sun, 27 Mar 2016 21:56:18 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id t78sm13518897pfi.55.2016.03.27.21.56.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Mar 2016 21:56:17 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 4/5] staging: wilc1000: remove unused struct semaphore SemHandleUpdateStats Date: Mon, 28 Mar 2016 13:55:59 +0900 Message-Id: <1459140960-10645-4-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459140960-10645-1-git-send-email-chaehyun.lim@gmail.com> References: <1459140960-10645-1-git-send-email-chaehyun.lim@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 struct semaphore SemHandleUpdateStats is defined but never used in this driver, so just remove it. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 - drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 5785dda..f6aec47 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -2262,7 +2262,6 @@ struct wireless_dev *wilc_create_wiphy(struct net_device *net, struct device *de } priv = wdev_priv(wdev); - sema_init(&(priv->SemHandleUpdateStats), 1); priv->wdev = wdev; wdev->wiphy->max_scan_ssids = MAX_NUM_PROBED_SSID; #ifdef CONFIG_PM diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index debb139..94a41b4 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -130,7 +130,6 @@ struct wilc_priv { struct wilc_wfi_key *wilc_ptk[MAX_NUM_STA]; u8 wilc_groupkey; /* semaphores */ - struct semaphore SemHandleUpdateStats; struct semaphore hSemScanReq; /* */ bool gbAutoRateAdjusted;