Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp417500rdb; Mon, 18 Sep 2023 21:50:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRXyJ0+g6WDNZTj5YcNSwHX+ANEE6AFcO9ZmOGbBAVpfpojFrp1Ga17/Evg1ncE7vRlC4o X-Received: by 2002:a05:6a00:1913:b0:68f:ece2:ac3b with SMTP id y19-20020a056a00191300b0068fece2ac3bmr10143699pfi.5.1695099019410; Mon, 18 Sep 2023 21:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695099019; cv=none; d=google.com; s=arc-20160816; b=wvVUmUkWNvdlwG3IM7Wv8eIw2H5j1XB2W8pyH7eQrKRhot2Z1HlHpxnyhRww4n3uy3 wZ0dSFNuNGAHPb/pCDecmn9+eSE0ggcAeCFUP6GB6MwFpSnCm170NSf3DCsUBHlvXYJF lPocBSMVTEtxmuU3NzfExoC+thLPH0yeHsqFXEnYeYLuXQF7VHjBC9t/1v53oyWA/MD4 z1pClfwNcyilFCLmdkWG9Lip00v2GNKSzCVOgHDKr9rgRm7VkQlMY65txxFkHkvkxmIx QnE/dk0msjs5/VykLC9O/rHY4Yza1x1KZuC8hvDlx5xZzpyKUd/LgX4kWIfDH5e72xxt dzlA== 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=hOuJyJHRtGtSLB8j2MmxJxxuTXZ084Rh630lRkVCwBM=; fh=YiNcVAVMOAebTCrskDWdQ7gxcCZbA/eCQNwlTo/G62U=; b=etccFqeZO7AcsGc/iPKb2B78NsTl80VSRqfkSu5J207B+C7dAogibGz1BlbxYDjkQ/ wT/XkC0XVDPiaw5q8HUjuN9dSLdDiGqjiGl5IQ0n7PVaO554iNkW7EIxrZYbJT323Kom SsgqC45r5DThD1X4EH+9xYP6CpHrbGRGRqQI4w8UpUzCh1mWgX/pVXBNf8luocyeu5VT ufhXIXPbsM6dYR/rDMgLk3rD+rw+ldPpjwpGA8NB+aqUrwj3Op4e6rvP/RqhLicQgDrH 3xsra3bRXsCKeOU88mvO400rpaoKSYqdr+Lfj/nUnYrjdK4FDd9VmmVnWPlExi+a5cuE utSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-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 v202-20020a6361d3000000b00563e25c07c0si8859071pgb.270.2023.09.18.21.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 21:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id AB1EA81A7D27; Mon, 18 Sep 2023 21:50:16 -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 S231502AbjISEuM (ORCPT + 56 others); Tue, 19 Sep 2023 00:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231501AbjISEuK (ORCPT ); Tue, 19 Sep 2023 00:50:10 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 071C98F; Mon, 18 Sep 2023 21:50:03 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 97D76602B36DD; Tue, 19 Sep 2023 12:50:00 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: jirislaby@kernel.org, mickflemm@gmail.com, mcgrof@kernel.org, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH v2 wireless-next 4/9] wifi: ath5k: remove unnecessary (void*) conversions Date: Tue, 19 Sep 2023 12:49:59 +0800 Message-Id: <20230919044959.523576-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-wireless@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:50:16 -0700 (PDT) No need cast (void *) to (struct ath5k_hw *). Signed-off-by: Wu Yunchuan --- drivers/net/wireless/ath/ath5k/base.c | 4 ++-- drivers/net/wireless/ath/ath5k/pci.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index c59c14483177..597d1f916dfd 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -230,13 +230,13 @@ ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val) } static unsigned int ath5k_ioread32(void *hw_priv, u32 reg_offset) { - struct ath5k_hw *ah = (struct ath5k_hw *) hw_priv; + struct ath5k_hw *ah = hw_priv; return ath5k_hw_reg_read(ah, reg_offset); } static void ath5k_iowrite32(void *hw_priv, u32 val, u32 reg_offset) { - struct ath5k_hw *ah = (struct ath5k_hw *) hw_priv; + struct ath5k_hw *ah = hw_priv; ath5k_hw_reg_write(ah, val, reg_offset); } diff --git a/drivers/net/wireless/ath/ath5k/pci.c b/drivers/net/wireless/ath/ath5k/pci.c index 86b8cb975b1a..b51fce5ae260 100644 --- a/drivers/net/wireless/ath/ath5k/pci.c +++ b/drivers/net/wireless/ath/ath5k/pci.c @@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table); /* return bus cachesize in 4B word units */ static void ath5k_pci_read_cachesize(struct ath_common *common, int *csz) { - struct ath5k_hw *ah = (struct ath5k_hw *) common->priv; + struct ath5k_hw *ah = common->priv; u8 u8tmp; pci_read_config_byte(ah->pdev, PCI_CACHE_LINE_SIZE, &u8tmp); @@ -76,7 +76,7 @@ static void ath5k_pci_read_cachesize(struct ath_common *common, int *csz) static bool ath5k_pci_eeprom_read(struct ath_common *common, u32 offset, u16 *data) { - struct ath5k_hw *ah = (struct ath5k_hw *) common->ah; + struct ath5k_hw *ah = common->ah; u32 status, timeout; /* -- 2.30.2