Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp418481rdb; Mon, 18 Sep 2023 21:53:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETVV68dcKWgg/DTVyn2N4mWIM/sRJ7hi4dhS+xpH70gW833RXXc81/q6u7HTU32X/tbOAD X-Received: by 2002:a05:6358:1a9e:b0:143:4b0a:5f20 with SMTP id gm30-20020a0563581a9e00b001434b0a5f20mr1802949rwb.29.1695099227120; Mon, 18 Sep 2023 21:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695099227; cv=none; d=google.com; s=arc-20160816; b=wqh7U2md3cMFObk2Cz7PMPVb7COq6/p8xGYUog2c3TfNc03/q56NuOUFp2dzsnn7vV cKHQVv/PSz1Qp1y4Cwqi63cEwfY6fLL2lzXxlzdypu+nYq+5fDVdEuZFGW9BsHAd017t CkeYtUogSjpMmqtuySuzicS3ZfPbo1dQTeYN5b9S+bcFGaJ5stG5Xo8TqyWppcBCgTR0 jis0hOKo+NxqNXYw4Z2Rz66slx10JWd1bYZ1viRPvgEXOkeivGhsgmucFcyeNrCjjOha yYsMnGVW0cp7LZiVa1TfmpnbugEe3aZcit9O9ITAaBnI/NDOytZEAJwQa+Wel5RegCNS iOBg== 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 :message-id:date:subject:cc:to:from; bh=qyk++gymVu/fbIE+69vK29BvxoUC/kUKC+dD3ihAgjI=; fh=B9L2/g3jXKT5zVLmh2feC7vdek7YYRRPO57cV0YdOck=; b=rJoms3zSzQ2IB/IDcvOiLGvRWmnLyVQKPAIanzg26Wba92LcSar+JRucNSxCzZrqLt qpLXhCxYaaRtcDZwX6bsNWQg3SxaD7ptXznYQpleM5dNrpCt8m/54mQ2CbBkA7GUvdWp lluhHLk/ZDDnyfX0GKwaleeL/Dh7u0JwEvyiIFstADZglH/UG9VySFZXffy4pw/LSCS0 Im6tTkALIYKgg7jp4HBqYPlRffpIAEJEeyT3TcNzOHFlU2KYS/jdnKLcmDULyBDnJgR4 6RbD72+X2ZRbSKsowDPSSHgJhGeqtdA/hXZ+YnKKY6Gggi3W/KJFh4qyPT6KmH8y5+Cf FPlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id w4-20020a656944000000b00573f94e8b83si1118607pgq.265.2023.09.18.21.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 21:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B1B0A80238A6; Mon, 18 Sep 2023 21:51:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231534AbjISEvp (ORCPT + 99 others); Tue, 19 Sep 2023 00:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231477AbjISEvn (ORCPT ); Tue, 19 Sep 2023 00:51:43 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id E6EBE116; Mon, 18 Sep 2023 21:51:35 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3E1BD602F96CC; Tue, 19 Sep 2023 12:51:32 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: kvalo@kernel.org, quic_jjohnson@quicinc.com Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH v2 wireless-next 6/9] wifi: ath10k: Remove unnecessary (void*) conversions Date: Tue, 19 Sep 2023 12:50:56 +0800 Message-Id: <20230919045056.523958-1-yunchuan@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 21:51:49 -0700 (PDT) No need cast (void*) to (struct htt_rx_ring_setup_ring32 *), (struct htt_rx_ring_setup_ring64 *). Change the prototype to remove the local variable. Signed-off-by: Wu Yunchuan Suggested-by: Jeff Johnson --- drivers/net/wireless/ath/ath10k/htt_tx.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index bd603feb7953..be4d4536aaa8 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -796,20 +796,16 @@ static int ath10k_htt_send_frag_desc_bank_cfg_64(struct ath10k_htt *htt) return 0; } -static void ath10k_htt_fill_rx_desc_offset_32(struct ath10k_hw_params *hw, void *rx_ring) +static void ath10k_htt_fill_rx_desc_offset_32(struct ath10k_hw_params *hw, + struct htt_rx_ring_setup_ring32 *rx_ring) { - struct htt_rx_ring_setup_ring32 *ring = - (struct htt_rx_ring_setup_ring32 *)rx_ring; - - ath10k_htt_rx_desc_get_offsets(hw, &ring->offsets); + ath10k_htt_rx_desc_get_offsets(hw, &rx_ring->offsets); } -static void ath10k_htt_fill_rx_desc_offset_64(struct ath10k_hw_params *hw, void *rx_ring) +static void ath10k_htt_fill_rx_desc_offset_64(struct ath10k_hw_params *hw, + struct htt_rx_ring_setup_ring64 *rx_ring) { - struct htt_rx_ring_setup_ring64 *ring = - (struct htt_rx_ring_setup_ring64 *)rx_ring; - - ath10k_htt_rx_desc_get_offsets(hw, &ring->offsets); + ath10k_htt_rx_desc_get_offsets(hw, &rx_ring->offsets); } static int ath10k_htt_send_rx_ring_cfg_32(struct ath10k_htt *htt) -- 2.30.2