From patchwork Mon Jun 6 05:13:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binoy Jayan X-Patchwork-Id: 69366 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1311280qgf; Sun, 5 Jun 2016 22:14:51 -0700 (PDT) X-Received: by 10.107.168.194 with SMTP id e63mr18694962ioj.61.1465190090592; Sun, 05 Jun 2016 22:14:50 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c141si26036574pfb.198.2016.06.05.22.14.50; Sun, 05 Jun 2016 22:14:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbcFFFOi (ORCPT + 31 others); Mon, 6 Jun 2016 01:14:38 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:35410 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753300AbcFFFOX (ORCPT ); Mon, 6 Jun 2016 01:14:23 -0400 Received: by mail-pf0-f169.google.com with SMTP id g64so63138956pfb.2 for ; Sun, 05 Jun 2016 22:14:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZSP5nvU43DWMujrlgW4ye6XRlfgPcri99TUdYewGGq8=; b=SiGcaTTW059z5fVOkGED922rIZXyEcuvZ1E4O1TYbCn9hc1Zkr5PSSgoWj+i8L5Q9i kjevxfO4FefNL/R+nBkfdVkNf1EdHeuNhUe3QBv6ptbjrWDiezTXDrkiodz7pkx6TdqX 6xM8oHmOhgmp81sOUdtPhLUBZIA0ygFRGnqls= 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=ZSP5nvU43DWMujrlgW4ye6XRlfgPcri99TUdYewGGq8=; b=MM8TrxLpfeOxmTxhIHy0pShU0mlbu3ct+V7oe56EUPe9RgvFIwM/xftZEQK5feELN2 YoLiOuT3ACKsL/VG+0dVW/82A68Crh8v3MvjiOso5o0Z1UXZjnFRzeBsCQVLoVzKOdgv AgrovERAAqNtuSjtg1BogLRMCs+2PXxOYaW24F6nt1wPgz3AhGrHr/wwWHG4nHPF/6V2 1DZlMB3oqKW13ohdt+N3himq1j0z31Xu0lwg4650voOQ3FiAkjCDRQFM9sp7YGOQYTFp CHctsoYdARDVNeL9GSkN7MBoLmhQXAjK3g/IF3TWjwqMUuI9C4D59Zsknd3Rs/2bRjL2 +dTA== X-Gm-Message-State: ALyK8tKIf77TFZ8uRqnQpU3XjRH+cIbvqbO+zQmoqna401FWQy3voDlQST7ZABY7ic+OPtDR X-Received: by 10.98.28.74 with SMTP id c71mr23591274pfc.131.1465190062169; Sun, 05 Jun 2016 22:14:22 -0700 (PDT) Received: from blr-ubuntu-59.ap.qualcomm.com ([202.46.23.61]) by smtp.gmail.com with ESMTPSA id h5sm21457443pat.0.2016.06.05.22.14.18 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Jun 2016 22:14:20 -0700 (PDT) From: Binoy Jayan To: Greg Kroah-Hartman , Larry Finger Cc: Jakub Sitnicki , Arnd Bergmann , driverdev-devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, Binoy Jayan Subject: [PATCH v3 4/4] staging: r8188eu: Remove unused semaphores Date: Mon, 6 Jun 2016 10:43:55 +0530 Message-Id: <1465190035-10359-5-git-send-email-binoy.jayan@linaro.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1465190035-10359-1-git-send-email-binoy.jayan@linaro.org> References: <1464947943-2008-1-git-send-email-binoy.jayan@linaro.org> <1465190035-10359-1-git-send-email-binoy.jayan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The semaphores xmit_sema, terminate_xmitthread_sema and tx_retevt have no users, hence remove all references to them. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann Acked-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 4 ---- drivers/staging/rtl8188eu/include/osdep_service.h | 1 - drivers/staging/rtl8188eu/include/rtw_event.h | 1 - drivers/staging/rtl8188eu/include/rtw_xmit.h | 3 --- 4 files changed, 9 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c index e0a5567..1e1b6d8 100644 --- a/drivers/staging/rtl8188eu/core/rtw_xmit.c +++ b/drivers/staging/rtl8188eu/core/rtw_xmit.c @@ -57,8 +57,6 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) /* We don't need to memset padapter->XXX to zero, because adapter is allocated by vzalloc(). */ spin_lock_init(&pxmitpriv->lock); - sema_init(&pxmitpriv->xmit_sema, 0); - sema_init(&pxmitpriv->terminate_xmitthread_sema, 0); /* Please insert all the queue initializaiton using _rtw_init_queue below @@ -199,8 +197,6 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) pxmitpriv->txirp_cnt = 1; - sema_init(&(pxmitpriv->tx_retevt), 0); - /* per AC pending irp */ pxmitpriv->beq_cnt = 0; pxmitpriv->bkq_cnt = 0; diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h b/drivers/staging/rtl8188eu/include/osdep_service.h index c53c9ea..6f6a8f8 100644 --- a/drivers/staging/rtl8188eu/include/osdep_service.h +++ b/drivers/staging/rtl8188eu/include/osdep_service.h @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/staging/rtl8188eu/include/rtw_event.h b/drivers/staging/rtl8188eu/include/rtw_event.h index 0dc63f2..2a45581 100644 --- a/drivers/staging/rtl8188eu/include/rtw_event.h +++ b/drivers/staging/rtl8188eu/include/rtw_event.h @@ -18,7 +18,6 @@ #include #include -#include #include #include diff --git a/drivers/staging/rtl8188eu/include/rtw_xmit.h b/drivers/staging/rtl8188eu/include/rtw_xmit.h index a0853ba..7895008 100644 --- a/drivers/staging/rtl8188eu/include/rtw_xmit.h +++ b/drivers/staging/rtl8188eu/include/rtw_xmit.h @@ -263,8 +263,6 @@ struct agg_pkt_info { struct xmit_priv { spinlock_t lock; - struct semaphore xmit_sema; - struct semaphore terminate_xmitthread_sema; struct __queue be_pending; struct __queue bk_pending; struct __queue vi_pending; @@ -289,7 +287,6 @@ struct xmit_priv { u8 wmm_para_seq[4];/* sequence for wmm ac parameter strength * from large to small. it's value is 0->vo, * 1->vi, 2->be, 3->bk. */ - struct semaphore tx_retevt;/* all tx return event; */ u8 txirp_cnt;/* */ struct tasklet_struct xmit_tasklet; /* per AC pending irp */