Received: from viti.kaiser.cx (viti.kaiser.cx [85.214.81.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C71A3FD6 for ; Mon, 13 Sep 2021 18:53:15 +0000 (UTC) Received: from 250.57.4.146.static.wline.lns.sme.cust.swisscom.ch ([146.4.57.250] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mPr4l-0005CM-3r; Mon, 13 Sep 2021 20:53:07 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v2 3/8] staging: r8188eu: _free_pwrlock is empty Date: Mon, 13 Sep 2021 20:51:05 +0200 Message-Id: <20210913185110.3065-4-martin@kaiser.cx> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210913185110.3065-1-martin@kaiser.cx> References: <20210911141521.24901-1-martin@kaiser.cx> <20210913185110.3065-1-martin@kaiser.cx> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove the empty _free_pwrlock function and rtw_free_pwrctrl_priv, which is just a wrapper around _free_pwrlock. Signed-off-by: Martin Kaiser --- v2: - rebased against today's staging-testing branch drivers/staging/r8188eu/core/rtw_pwrctrl.c | 8 -------- drivers/staging/r8188eu/include/rtw_pwrctrl.h | 4 ---- drivers/staging/r8188eu/os_dep/os_intfs.c | 2 -- 3 files changed, 14 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_pwrctrl.c b/drivers/staging/r8188eu/core/rtw_pwrctrl.c index 3adcf0f3d012..4500d60c3777 100644 --- a/drivers/staging/r8188eu/core/rtw_pwrctrl.c +++ b/drivers/staging/r8188eu/core/rtw_pwrctrl.c @@ -371,14 +371,6 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter) timer_setup(&pwrctrlpriv->pwr_state_check_timer, pwr_state_check_handler, 0); } -void rtw_free_pwrctrl_priv(struct adapter *adapter) -{ - struct pwrctrl_priv *pwrctrlpriv = &adapter->pwrctrlpriv; - - _free_pwrlock(&pwrctrlpriv->lock); - -} - inline void rtw_set_ips_deny(struct adapter *padapter, u32 ms) { struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; diff --git a/drivers/staging/r8188eu/include/rtw_pwrctrl.h b/drivers/staging/r8188eu/include/rtw_pwrctrl.h index 463eb9845e0b..edbb852b1288 100644 --- a/drivers/staging/r8188eu/include/rtw_pwrctrl.h +++ b/drivers/staging/r8188eu/include/rtw_pwrctrl.h @@ -50,10 +50,6 @@ static inline void _init_pwrlock(struct semaphore *plock) sema_init(plock, 1); } -static inline void _free_pwrlock(struct semaphore *plock) -{ -} - static inline void _enter_pwrlock(struct semaphore *plock) { _rtw_down_sema(plock); diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c index 306377fe8bfc..3367c7cfc033 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -933,8 +933,6 @@ u8 rtw_free_drv_sw(struct adapter *padapter) _rtw_free_recv_priv(&padapter->recvpriv); - rtw_free_pwrctrl_priv(padapter); - rtl8188e_free_hal_data(padapter); /* free the old_pnetdev */ -- 2.20.1