Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7570741rwl; Fri, 30 Dec 2022 10:22:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXvfyQXRz51Kcrf2aP9+8wSSu8YuYZlWNA0NsXa0PF8P4Oh9GEj+2mbCXNxsQCDlJJWcSOdh X-Received: by 2002:a17:907:a0d0:b0:7c1:55aa:2e84 with SMTP id hw16-20020a170907a0d000b007c155aa2e84mr25689552ejc.1.1672424546950; Fri, 30 Dec 2022 10:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672424546; cv=none; d=google.com; s=arc-20160816; b=0ptNj9GFV4jrBRkk+osi/s12MPkoYMa8Ybi8DFHgpzgjdAM2Rl+/wtfXBYFba7lopq oox7gYAZ64ZrpT/oqJxCwyBNp4/De1Ubq6Rzc37Po3cK7EEKha9mzYG9AcKd8Gei5Jyh a4IAy1KLv9+foMRFnaXcqqZMzQe010b1xMrS3gkaspKsG+Ui/ibPd3XuDEN1ALzFcDTA ztCHFBcSab14i4gbjkHc07Ge6uuaf8LPReDJ7UtMkz8XtbGjAnRJgKMpwcGC62uJhgc3 1CQFNA6kynQfl5bfavQduZILPLnZPi3OnzP6Usa1YHAZAJCRDhF7H7W0VPTG4wNPcmTm I9BA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp18-20020a170906c15200b007c195f5947fsi18927763ejc.1003.2022.12.30.10.22.12; Fri, 30 Dec 2022 10:22:26 -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 + 63 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 Content-Transfer-Encoding: 8bit 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 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]; }; -- 2.30.2