From patchwork Fri Dec 30 18:06:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 37741 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3008701wrt; Fri, 30 Dec 2022 10:08:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXuMyTN2TvlF9a9hXir4M2uYMXS+iZiy2zDwIhRBESnV7hE9wZl6ochHVkpmeEjqOghokDIN X-Received: by 2002:a17:903:3287:b0:186:59e9:a261 with SMTP id jh7-20020a170903328700b0018659e9a261mr32428173plb.43.1672423739236; Fri, 30 Dec 2022 10:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672423739; cv=none; d=google.com; s=arc-20160816; b=ZLNyDbX5FpfbpBK6dxXyHo3kbHzP2ZhZZKjBKh0wNxUeMPkLZNb46tgkdbw8jS8AbC aqF15mGW71q/R4iCCrlCccupbDzg0CZ09mr2BhkkQlfs4OixXvmfPGt5tNVQ9eGjojz5 acnz5lR9cZeitPwzUjqBKCqYU75iFd7vj2DeNbB0vEA341/WM4wEpPaTEWPhxKKWw1z2 hlG8z3AcXg/1HnuYFKkxw5WZAtvH9r3zp2ZQGtg914DqKFJTkkXler4sQ73ZsZNhNwKy 3W8p1n4InXpbvLSeuK4aSvIuwCGw2otFfWYpn9YN6kNAWDz72A14vKPYPm50ZV7rPx0B 8xHg== 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=aG2J2nl9tOvFa0fU3SCSBn/7yEsWSysETiJp300dh0U=; b=YJIHEkFwCmalkoeOrACN3ZZIdjfoDWdlvEbuOPMRGDVDSvjqoMZUKFbD+CMnjFNNZB UNM6B/91webaIFdq1DQPEGv+wd7WyuqL573AbKhc8RAiLl2iPdFpyC6k0jW6D2UJxXwf V75EkYHkUxrgv3FqXrFMb27vM2mohzLO1wlHrjeNX+th1mwQqlAtZWrTp3SbMBGBlZ/Y kcIA/OXTtr3acHt8LNqmnPG9Xzq+J2+uHnJxBXxFQI/P4pNyac+wdYJcUCp3+MjSaYnV wqhg6ISj46Tgl+qA/lEpsS3Hvvgdq5ascHiYAHv1RPqVpcJX3KjXWWFHD7SLrh/4h4Qo TuFA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a170902e84f00b0018049a28eabsi24258375plg.617.2022.12.30.10.08.47; Fri, 30 Dec 2022 10:08:59 -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 S235531AbiL3SHy (ORCPT + 99 others); Fri, 30 Dec 2022 13:07:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235158AbiL3SH3 (ORCPT ); Fri, 30 Dec 2022 13:07:29 -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 071181C908 for ; Fri, 30 Dec 2022 10:07:20 -0800 (PST) Received: from dslb-188-097-208-179.188.097.pools.vodafone-ip.de ([188.97.208.179] 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 1pBJmm-0004rR-Ce; Fri, 30 Dec 2022 19:07:16 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 13/20] staging: r8188eu: remove unused dma_transfer_addr Date: Fri, 30 Dec 2022 19:06:39 +0100 Message-Id: <20221230180646.91008-14-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221230180646.91008-1-martin@kaiser.cx> References: <20221230180646.91008-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753663394540736811?= X-GMAIL-MSGID: =?utf-8?q?1753663394540736811?= The dma_transfer_addr component in struct xmit_buf is initialised but not used. Remove it. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_xmit.c | 1 - drivers/staging/r8188eu/include/rtw_xmit.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_xmit.c b/drivers/staging/r8188eu/core/rtw_xmit.c index 0fef508408a7..bf4bb1e66985 100644 --- a/drivers/staging/r8188eu/core/rtw_xmit.c +++ b/drivers/staging/r8188eu/core/rtw_xmit.c @@ -41,7 +41,6 @@ static int rtw_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *px return -ENOMEM; pxmitbuf->pbuf = (u8 *)ALIGN((size_t)(pxmitbuf->pallocated_buf), XMITBUF_ALIGN_SZ); - pxmitbuf->dma_transfer_addr = 0; pxmitbuf->pxmit_urb = usb_alloc_urb(0, GFP_KERNEL); if (!pxmitbuf->pxmit_urb) { diff --git a/drivers/staging/r8188eu/include/rtw_xmit.h b/drivers/staging/r8188eu/include/rtw_xmit.h index b017f9293f86..1c4fbdf97a12 100644 --- a/drivers/staging/r8188eu/include/rtw_xmit.h +++ b/drivers/staging/r8188eu/include/rtw_xmit.h @@ -202,7 +202,6 @@ struct xmit_buf { struct submit_ctx *sctx; u32 ff_hwaddr; struct urb *pxmit_urb; - dma_addr_t dma_transfer_addr; /* (in) dma addr for transfer_buffer */ int last[8]; };