From patchwork Thu Jun 2 10:53:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binoy Jayan X-Patchwork-Id: 69145 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp48865qgf; Thu, 2 Jun 2016 03:53:47 -0700 (PDT) X-Received: by 10.66.231.35 with SMTP id td3mr4648546pac.56.1464864824590; Thu, 02 Jun 2016 03:53:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 66si57628011pfn.73.2016.06.02.03.53.44; Thu, 02 Jun 2016 03:53:44 -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 S1753206AbcFBKxb (ORCPT + 30 others); Thu, 2 Jun 2016 06:53:31 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34746 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932452AbcFBKx3 (ORCPT ); Thu, 2 Jun 2016 06:53:29 -0400 Received: by mail-pf0-f174.google.com with SMTP id 62so30185545pfd.1 for ; Thu, 02 Jun 2016 03:53:29 -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=SL9kd9UAn6yHpWWut4zYVQ1NgTui9ao1pDKMDxKXreU=; b=flvQEvIkVdUJ+I6Kpty6RMdSB5CPblXWQ9mYePaJMkJdjNg4uGJC6TkRbV+jjQp2as WRWwmZ6yxCFeKdU4xCSaBsVSdMC/Wy/f47RHcQnEjSLdly0ab9CZTjc8Zn9k1JKWt4uS 0MRBSSg2VijxZOjDdw/PVIaMCHd9at8cDAFOg= 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=SL9kd9UAn6yHpWWut4zYVQ1NgTui9ao1pDKMDxKXreU=; b=L6CvA45Rvk22DaaNPS079OvZzj1BcD9GCAiMdwfjG169PKHXWMIWzR6AWxZYXDF5XF l60+uBrmvTNStkFfWSCs+n9yaWj7zNOkDDiBhKAWxT2M69X/cU81UemlZKln+mfDJQ11 En7slDnNXIXXho5QHfJ7QZZFqOHnQ/OEfPhJ7yGLlAu6esUwLcXBH0tJoIAF4CsVUYTY +FTjOQOo0oY7VJnDxvc6DgCvbkohO8YKGOPVVobxheiYEKjElYYcFbHYiOlEOLkPd/Tv PhGq9L2fl2DuumfTrwlkD7VhlTgtXacQLnhOdeSahN8bVObskMMpANb82RVbyWRkuQCo w7VQ== X-Gm-Message-State: ALyK8tLHRykosTWfXKK5qkbix/CZo1a/I9SWS0pRwzlTxdNAJrYV5EAmBVivmzB4i3MRn/JG X-Received: by 10.98.73.214 with SMTP id r83mr3227017pfi.114.1464864809027; Thu, 02 Jun 2016 03:53:29 -0700 (PDT) Received: from blr-ubuntu-59.ap.qualcomm.com ([202.46.23.61]) by smtp.gmail.com with ESMTPSA id x71sm29190142pfj.43.2016.06.02.03.53.26 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jun 2016 03:53:28 -0700 (PDT) From: Binoy Jayan To: Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Binoy Jayan Subject: [PATCH v2 4/4] rtl8192u: Remove unused semaphore rf_sem Date: Thu, 2 Jun 2016 16:23:02 +0530 Message-Id: <1464864782-424-5-git-send-email-binoy.jayan@linaro.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1464864782-424-1-git-send-email-binoy.jayan@linaro.org> References: <1464843475-4870-1-git-send-email-binoy.jayan@linaro.org> <1464864782-424-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 semaphore 'rf_sem' in rtl8192u has no users, hence removing it. Signed-off-by: Binoy Jayan --- This patch depends on the following patch: rtl8192u: Replace semaphore scan_sem with mutex drivers/staging/rtl8192u/r8192U.h | 1 - drivers/staging/rtl8192u/r8192U_core.c | 1 - 2 files changed, 2 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h index 2780838..f717cb3 100644 --- a/drivers/staging/rtl8192u/r8192U.h +++ b/drivers/staging/rtl8192u/r8192U.h @@ -880,7 +880,6 @@ typedef struct r8192_priv { short crcmon; struct mutex wx_mutex; - struct semaphore rf_sem; /* Used to lock rf write operation */ u8 rf_type; /* 0: 1T2R, 1: 2T4R */ RT_RF_TYPE_819xU rf_chip; diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index c6d3119..ccb4259 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -2374,7 +2374,6 @@ static void rtl8192_init_priv_lock(struct r8192_priv *priv) spin_lock_init(&priv->tx_lock); spin_lock_init(&priv->irq_lock); mutex_init(&priv->wx_mutex); - sema_init(&priv->rf_sem, 1); mutex_init(&priv->mutex); }