Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3663220rdb; Wed, 13 Sep 2023 21:08:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZgCH+WKb9dgIuhPyTyW6Y4G/JASxIwr5B4zm/Z8EQdKuPvkwqeL2sw9boeBLwqt4BISsS X-Received: by 2002:a54:4816:0:b0:3a7:a3b1:ac30 with SMTP id j22-20020a544816000000b003a7a3b1ac30mr4502762oij.44.1694664524965; Wed, 13 Sep 2023 21:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694664524; cv=none; d=google.com; s=arc-20160816; b=xwEAdKiJfc72K9PSms3xkLLSyBSm1ytpRzy1/DSaI2OtrjVoxbwV75OolGfQgZVyBo XaAFvH7wKB/gDaL1nQOVZk1pJ5iPpVQnDVkqn2Pj8iPplMC6mC57iFfErkry1MvAlPC5 P50BMN/U7m+Ivw/cmJE/iF8R7vXUmJb1vV/ePXO42TT5csZ+E4R/1kILtilHxnk+2bcq xoEcN1nJHrh/hezfZXSvVwkAEuY9ZLUi3nCLonPSXXwymy4huSbAmb5ryzEvmP2vQiSe UPhuuN/iQWGgnzy9iNeLop3sHZXdqe90Do88SGMfhl1cXTZD5MhHi1uEjPgYcSEBUZ1O SDaw== 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=ubaBM2jLboDRzbRRrMEtXHH3jg4UCQiG9p8xlFZpYlg=; fh=0zFcK6gS6XSjTiqUJiGY8nmDu+KgtJtCnfGfreJV180=; b=K8HK7ZwoTxYntLCvMUpDCaoRcQdjZ8I32dIyZ2NwuIiR5v35K7RILtA/sIlgy9bwCN Aeog0ymmKL1X6G8oqFOjQey4L59LxoMk5ehY3t/aBLuwCW5vsO/6egr/3gydrPD64fl+ rGrSSCN9kWH+5NUe7AJCLGBVEJHbcXvL+WEDHf970HQgAd5wnXq1LoJBDXpS27O9bIxq 6Urs6B6T++Y/71Ep79BA8igCjDrhfI/2h/YQ8j8NVDuIETkN6UtOL3YzatKY86Gu9DAC IAlTpV0r0LiMlAwP+XzEbZeuS8KRfvpwq+tXSqHMFqeMdngFG2oaXH+dB7PoDpB2KNKO br8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 201-20020a6302d2000000b0056da0ae25casi648216pgc.327.2023.09.13.21.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 21:08:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0887C80C2555; Wed, 13 Sep 2023 21:05:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234627AbjINEFm (ORCPT + 57 others); Thu, 14 Sep 2023 00:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234916AbjINEF2 (ORCPT ); Thu, 14 Sep 2023 00:05:28 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 145211FC6; Wed, 13 Sep 2023 21:05:21 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 9B255606080EF; Thu, 14 Sep 2023 12:05:18 +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, toke@toke.dk Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH wireless-next 6/9] wifi: ath10k: Remove unnecessary (void*) conversions Date: Thu, 14 Sep 2023 12:05:17 +0800 Message-Id: <20230914040517.1170024-1-yunchuan@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Sep 2023 21:05:42 -0700 (PDT) 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 agentk.vger.email No need cast (void*) to (struct htt_rx_ring_setup_ring32 *), (struct htt_rx_ring_setup_ring64 *), (struct ath_softc *) or (struct ath_hw *). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/ath/ath10k/htt_tx.c | 6 ++---- drivers/net/wireless/ath/ath9k/pci.c | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index bd603feb7953..31f08db8a42f 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -798,16 +798,14 @@ static int ath10k_htt_send_frag_desc_bank_cfg_64(struct ath10k_htt *htt) static void ath10k_htt_fill_rx_desc_offset_32(struct ath10k_hw_params *hw, void *rx_ring) { - struct htt_rx_ring_setup_ring32 *ring = - (struct htt_rx_ring_setup_ring32 *)rx_ring; + struct htt_rx_ring_setup_ring32 *ring = rx_ring; ath10k_htt_rx_desc_get_offsets(hw, &ring->offsets); } static void ath10k_htt_fill_rx_desc_offset_64(struct ath10k_hw_params *hw, void *rx_ring) { - struct htt_rx_ring_setup_ring64 *ring = - (struct htt_rx_ring_setup_ring64 *)rx_ring; + struct htt_rx_ring_setup_ring64 *ring = rx_ring; ath10k_htt_rx_desc_get_offsets(hw, &ring->offsets); } diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index 0633589b85c2..e655cd8bbf94 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c @@ -781,7 +781,7 @@ static const struct pci_device_id ath_pci_id_table[] = { /* return bus cachesize in 4B word units */ static void ath_pci_read_cachesize(struct ath_common *common, int *csz) { - struct ath_softc *sc = (struct ath_softc *) common->priv; + struct ath_softc *sc = common->priv; u8 u8tmp; pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE, &u8tmp); @@ -799,7 +799,7 @@ static void ath_pci_read_cachesize(struct ath_common *common, int *csz) static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data) { - struct ath_hw *ah = (struct ath_hw *) common->ah; + struct ath_hw *ah = common->ah; common->ops->read(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); @@ -820,7 +820,7 @@ static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data) /* Need to be called after we discover btcoex capabilities */ static void ath_pci_aspm_init(struct ath_common *common) { - struct ath_softc *sc = (struct ath_softc *) common->priv; + struct ath_softc *sc = common->priv; struct ath_hw *ah = sc->sc_ah; struct pci_dev *pdev = to_pci_dev(sc->dev); struct pci_dev *parent; -- 2.30.2