Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944991AbcJSP1d (ORCPT ); Wed, 19 Oct 2016 11:27:33 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34188 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S943914AbcJSPFo (ORCPT ); Wed, 19 Oct 2016 11:05:44 -0400 From: Ivan Safonov To: Greg Kroah-Hartman , Bhaktipriya Shridhar , Andy Shevchenko , Geliang Tang , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: insafonov@gmail.com Subject: [PATCH 22/37] staging:r8188eu: change recvframe_pull_tail type to void Date: Wed, 19 Oct 2016 22:07:50 +0700 Message-Id: <1476889685-7367-22-git-send-email-insafonov@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1476889685-7367-1-git-send-email-insafonov@gmail.com> References: <1476889685-7367-1-git-send-email-insafonov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1280 Lines: 39 Return value of this function does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index 0804e88..9a3a978 100644 --- a/drivers/staging/rtl8188eu/include/rtw_recv.h +++ b/drivers/staging/rtl8188eu/include/rtw_recv.h @@ -292,7 +292,7 @@ static inline u8 *recvframe_put(struct recv_frame *precvframe, uint sz) return precvframe->rx_tail; } -static inline u8 *recvframe_pull_tail(struct recv_frame *precvframe, uint sz) +static inline void recvframe_pull_tail(struct recv_frame *precvframe, uint sz) { /* rmv data from rx_tail (by yitsen) */ @@ -301,14 +301,13 @@ static inline u8 *recvframe_pull_tail(struct recv_frame *precvframe, uint sz) /* after pulling, rx_end must be still larger than rx_data. */ if (precvframe == NULL) - return NULL; + return; precvframe->rx_tail -= sz; if (precvframe->rx_tail < precvframe->pkt->data) { precvframe->rx_tail += sz; - return NULL; + return; } precvframe->len -= sz; - return precvframe->rx_tail; } static inline s32 translate_percentage_to_dbm(u32 sig_stren_index) -- 2.7.3