Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1268679pxm; Sat, 26 Feb 2022 10:08:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUCjEzsrlhXe3BNJplKjphL6WBfEcQIRjNu2xrs7PyigZ33JxCuUFOmjr3Y0sihfT+3fpJ X-Received: by 2002:aa7:d592:0:b0:410:b9f9:90f2 with SMTP id r18-20020aa7d592000000b00410b9f990f2mr12305919edq.327.1645898929523; Sat, 26 Feb 2022 10:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645898929; cv=none; d=google.com; s=arc-20160816; b=y+bHZf9nPTAvgsGlOEuM2AbMU7hUzVdWGN/IVsaxHxe5B/luk4d/XmnYelC2l7gQq9 fWlNhI2EueSQ6/1qDlrzCCGyR7/FdrFUCv/LQmciiaN+ZLNLFhMGmq0r+ue4icU469+h WSw5dQXLg3kKuS0HnFTlf1mk5P0AtsjNnTksLlC/QKLq+nUuyDqnKzc3WJGIkGvT3kA/ c1VOKp/JdEOa/6tOdgma+U5ev5pTOV8JPvgyRt1xREL614xeJTc+6xu+d2JKuwH+iY+X +ABWyJcwYPdTThqcZaiOoKT3mWdXcNkX+4aoJJThha/Owr2fNeCljWDhr0fCuiEHeA+l jynw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WwQj7lvWrGX5epnRVuwWwIqAF0LDMpjsr1FRBOilzbI=; b=gUQ6TuA+91dN3pDoA10qwUEcY412sO9Rq6nX3/yn6gqxsKDrv6AxAtW+Vn9vXjtre3 KRUlp16FA+SkmhOZTK11xgNgPUohXaqFg+gYDbnhuqq5VeJ5MG81/iYEDn87mk7vGPXN XTfNh+PpZzQHS3DJwfwzKkrP2RIRxV/8YxZcONHSwy3ynzRUnN5gk12Ezs1YWot+PcnK vcQRZf2sUTRmb0lmbKY5TvqWE5BUstZ/NYYiZFe4Ng5SyjxEha4DbnUKIXzrFCKkJ4dg X2dg6an383+qUprcJ6a+xoTvECGDhuo3sFZuiMCQ5tayoKHE5gv8M+L5mKI+SAaG+DTo R6cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd5-20020a1709069b8500b006a744d0cdeesi4113955ejc.875.2022.02.26.10.08.27; Sat, 26 Feb 2022 10:08:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232101AbiBZOtn (ORCPT + 99 others); Sat, 26 Feb 2022 09:49:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbiBZOtg (ORCPT ); Sat, 26 Feb 2022 09:49:36 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 763C7186225 for ; Sat, 26 Feb 2022 06:49:02 -0800 (PST) Received: from ipservice-092-217-092-093.092.217.pools.vodafone-ip.de ([92.217.92.93] 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 1nNyNW-0007Wh-Ei; Sat, 26 Feb 2022 15:48:58 +0100 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 4/6] staging: r8188eu: recvframe_push is not used Date: Sat, 26 Feb 2022 15:48:41 +0100 Message-Id: <20220226144843.1118951-5-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226144843.1118951-1-martin@kaiser.cx> References: <20220226144843.1118951-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The recvframe_push function is not used. It can be removed. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/rtw_recv.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_recv.h b/drivers/staging/r8188eu/include/rtw_recv.h index a417a70835e7..25afcbe862e6 100644 --- a/drivers/staging/r8188eu/include/rtw_recv.h +++ b/drivers/staging/r8188eu/include/rtw_recv.h @@ -286,26 +286,6 @@ static inline u8 *get_rx_status(struct recv_frame *precvframe) return get_rxmem(precvframe); } -static inline u8 *recvframe_push(struct recv_frame *precvframe, int sz) -{ - /* append data before rx_data */ - - /* add data to the start of recv_frame - * - * This function extends the used data area of the recv_frame at the buffer - * start. rx_data must be still larger than rx_head, after pushing. - */ - if (precvframe == NULL) - return NULL; - precvframe->rx_data -= sz ; - if (precvframe->rx_data < precvframe->rx_head) { - precvframe->rx_data += sz; - return NULL; - } - precvframe->len += sz; - return precvframe->rx_data; -} - static inline u8 *recvframe_pull(struct recv_frame *precvframe, int sz) { /* rx_data += sz; move rx_data sz bytes hereafter */ -- 2.30.2