From patchwork Wed Sep 16 09:53:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Cho X-Patchwork-Id: 7193491 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 35284BEEC1 for ; Wed, 16 Sep 2015 09:54:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1723220462 for ; Wed, 16 Sep 2015 09:54:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 27D6520439 for ; Wed, 16 Sep 2015 09:54:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753645AbbIPJyU (ORCPT ); Wed, 16 Sep 2015 05:54:20 -0400 Received: from eusmtp01.atmel.com ([212.144.249.243]:40321 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753114AbbIPJyU (ORCPT ); Wed, 16 Sep 2015 05:54:20 -0400 Received: from tony-itx.corp.atmel.com (10.161.101.13) by eusmtp01.atmel.com (10.161.101.31) with Microsoft SMTP Server id 14.3.235.1; Wed, 16 Sep 2015 11:54:15 +0200 From: Tony Cho To: CC: , , , , , , , , , , , Subject: [PATCH 8/8] staging: wilc1000: remove unused variable rxq_thread Date: Wed, 16 Sep 2015 18:53:27 +0900 Message-ID: <1442397207-20491-8-git-send-email-tony.cho@atmel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442397207-20491-1-git-send-email-tony.cho@atmel.com> References: <1442397207-20491-1-git-send-email-tony.cho@atmel.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Glen Lee The rxq_thread never runs since it's kthread_run code was delete in a previous patch. Remove kthread_run and it's related codes. Signed-off-by: Glen Lee Signed-off-by: Tony Cho --- drivers/staging/wilc1000/linux_wlan.c | 6 ------ drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 - 2 files changed, 7 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 186e42e..a4f43d2 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1276,7 +1276,6 @@ int wlan_initialize_threads(perInterface_wlan_t *nic) _fail_2: /*De-Initialize 2nd thread*/ g_linux_wlan->close = 1; - kthread_stop(g_linux_wlan->rxq_thread); #if (RX_BH_TYPE == RX_BH_KTHREAD) /*De-Initialize 1st thread*/ @@ -1295,11 +1294,6 @@ static void wlan_deinitialize_threads(linux_wlan_t *nic) g_linux_wlan->close = 1; PRINT_D(INIT_DBG, "Deinitializing Threads\n"); - if (g_linux_wlan->rxq_thread != NULL) { - kthread_stop(g_linux_wlan->rxq_thread); - g_linux_wlan->rxq_thread = NULL; - } - if (&g_linux_wlan->txq_event != NULL) up(&g_linux_wlan->txq_event); diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index c98eab6..aa96ef3 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -199,7 +199,6 @@ typedef struct { #endif struct semaphore txq_thread_started; - struct task_struct *rxq_thread; struct task_struct *txq_thread; unsigned char eth_src_address[NUM_CONCURRENT_IFC][6];