From patchwork Thu Sep 14 04:04:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Yunchuan X-Patchwork-Id: 139302 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp95990vqi; Wed, 13 Sep 2023 21:05:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHL054zFhmmqcerlcWlcjhP4V7dkERLzfrffaiTzshs+wv3P7hxgxTJieFDsclDDaUnAw4x X-Received: by 2002:a05:6870:51b:b0:1b3:6ea7:7475 with SMTP id j27-20020a056870051b00b001b36ea77475mr5131098oao.0.1694664333285; Wed, 13 Sep 2023 21:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694664333; cv=none; d=google.com; s=arc-20160816; b=0Hy0Kid4czEBC7lFiGZufAOEKHkTahLWRfpVD+EKjzj3D9/TP1kBAEWJmKhB3HZZKj b9ElS0gTGyzkvLzy5D20eUoNVFeLTqnLqV9lhWJvH7F+/MPV5u2kVJO/zIk6TaB77wxj 32xroSdjhZBAkLl4dgUuP6hAv50nWyQxK9grzCuez8Zej275pzytb+DK14dIMtFLxIFb HCjJUaK9FJLsgq5npSrCQiPKtR/7mPpdgZCC2azjmnNdtIO+TwO630wdYEMMXTk0YT1L M20XEwMtFq3MJDw9tiYmshuuiyjTlyKVW85b3Ol0MSPkmkmUuSl9cAbpMbQqGZIZDj2J c2iQ== 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 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l190-20020a6325c7000000b005740286f2a8si633141pgl.286.2023.09.13.21.05.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 21:05:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id BC0A682C2DBB; Wed, 13 Sep 2023 21:05:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234679AbjINEFO (ORCPT + 35 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 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 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 21:05:30 -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 fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776984347746935321 X-GMAIL-MSGID: 1776984347746935321 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; /*