Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3663683rdb; Wed, 13 Sep 2023 21:09:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHn5nANZi58Dv3GIW7HeC+VjMqSjg1/unxozEei+HAPEl+/FNtk8kVQCQjYIqKohQdq7Ctf X-Received: by 2002:a17:90a:7bc4:b0:269:6c5:11a7 with SMTP id d4-20020a17090a7bc400b0026906c511a7mr4272468pjl.17.1694664594782; Wed, 13 Sep 2023 21:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694664594; cv=none; d=google.com; s=arc-20160816; b=h/YOJUGxpe5UJWoSwAVheQMmqrBIIO/eOMMLg4ocfYbA2Okbk76idAvrmUL13BMyf6 Xx3Am+2C53vHb7vUCf69kURMP22li/Q5htgp8OWyAiQaollINog7eFgu1xb96nqLi8nj vK6SqEG8uzD3Jhmq8QEmWhhCxPhz+6LvdouRT52xa3EY0VzG3l3LXqt7k7QE2I1DHHCw yYdgRaMDuVu85DOeg3gy+0xuJEPlHCz430Gfx25sxiG/fQpsUTNURCFEHMf9UE1XcCzz tj1DdbyC0JqSDgoXqRq8RiyLxTl3PSQJ5avfnmtAGRYsSUiizxtIzKEdGjoTwjBbxAxI 8sKw== 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=X+pcjg0dgNC9Uwlxkm/jS3d40vbWv7NUndsWo79hSXPkjYgoEdS+1JX6+dnbklPCOw k9pt+SFpXc+FlKG1FyID7LVsS4KwJXDtjvoy9lSsIECe+MN0hJ+y/KLxRhawCCa70iwh W/nr62Q61tl/aRryEhEg2s4yBtCXh73hT28mXr8y/O9NpfriMfs7BIn6QIZhdRGE7Mp6 Ax9BuFWMuZ6ua0Z/sUOUcBSb5K495uBebwl2m+aiKP7ajMBZ6Vq5951pkQGHpJBm6G0R kWYeqYxV0xOBdeuXik4uJDPCRhLKzGwIlglH8ux5tbWcyuM3jB7oC+hweRmnGE63JXiE hN7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e88-20020a17090a6fe100b00268178130a2si821575pjk.60.2023.09.13.21.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 21:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id E4059807C850; Wed, 13 Sep 2023 21:05:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234654AbjINEFO (ORCPT + 99 others); Thu, 14 Sep 2023 00:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234661AbjINEFJ (ORCPT ); Thu, 14 Sep 2023 00:05:09 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id D55AD1BE3; Wed, 13 Sep 2023 21:05:04 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 91E4A606080E2; Thu, 14 Sep 2023 12:05:01 +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 wireless-next 4/9] wifi: ath5k: remove unnecessary (void*) conversions Date: Thu, 14 Sep 2023 12:04:59 +0800 Message-Id: <20230914040459.1169785-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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 21:05:35 -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 lipwig.vger.email 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