Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18553845rwd; Tue, 27 Jun 2023 19:49:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4O7jD7KYGmzG1ZOqInaSKRvFxVId8MK/m9Kgvbqp+U5xpkazNe3FkHnSsqSijO8RW3/gAF X-Received: by 2002:a17:907:1c19:b0:973:e5d9:d6ff with SMTP id nc25-20020a1709071c1900b00973e5d9d6ffmr31590330ejc.66.1687920547615; Tue, 27 Jun 2023 19:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687920547; cv=none; d=google.com; s=arc-20160816; b=vAsU7eOIohCfEhHqZthbQm00KELKeTgItsNYh+BbrQcFx723n0HNCCUAuQkEoOCt0G 1uC0KZ0HTxNZPB2gNRKe411My1bVqnqasm1K7WAJBWX2I2rYt5szuhYpI9DyKoil0OMR Vtmt1lDi3IZXwiONcUqtB+E5mq0O8Kv8jOdOnXdJDNqXKgw/IAQX3yWSP3y0T3Uc2ZZg QRu0dVwvikghrxpPaibgCz0ROpEQ5XX/FORQAQWZAdLyxACjYFLAttNKRVJ6vf1iswgl CC6/tfmWAmLa2Y9JqwsX0NQUCcVfHok05VDsQnoVUrYM1a7wFvybJLjoAw337948ujfH EJqg== 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=IOTPRryKmO3r251ieV7fPFuAYGyLkN68MKSEfLEYnJE=; fh=64t3c7CNo8ZCuCPdL/phW3seljCL9cODZCSjKPzDRuM=; b=Gwo8mSOPyb8hDIv0pzHFXmkReXhY3zsBYGNEHGCrw8wCw3O4GoIYdaN27QI6BOR96h NO41p+E4Bco10ZL7FMgvlvZgAXZwGmGioiAMLEQSqf2jct/mT4vDWWP/zaU9RHQSoS6e PiRzT5SJqyqS9loLxusl8CbVUmM+GybRgjp+WH4rGS+iLoU/UUwIs2g99XyD8tbOm1OT uOgJg8991/OzfT390gj7t9A6rHuLXLTX1dZHj2T3Z2ROGtxbul3Uqpsm0Qvqdps3BL3K eH8aRpwuqvoBALhUdNAAvBVJp6CGdHvAe8dUFhYKtEe1ZsPmrnzVfJ5A1BCV2WCGABlR mdig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a170906561500b0094f329b847asi5052769ejq.852.2023.06.27.19.48.43; Tue, 27 Jun 2023 19:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231448AbjF1Cpt (ORCPT + 99 others); Tue, 27 Jun 2023 22:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231447AbjF1Cpa (ORCPT ); Tue, 27 Jun 2023 22:45:30 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 6CA942D4E; Tue, 27 Jun 2023 19:45:22 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id E5116604D9369; Wed, 28 Jun 2023 10:45:18 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: iyappan@os.amperecomputing.com, keyur@os.amperecomputing.com, quan@os.amperecomputing.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH net-next 08/10] net: mdio: Remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:45:17 +0800 Message-Id: <20230628024517.1440644-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=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pointer variables of void * type do not require type cast. Signed-off-by: wuych --- drivers/net/mdio/mdio-xgene.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mdio/mdio-xgene.c b/drivers/net/mdio/mdio-xgene.c index 7aafc221b5cf..aa79464c9d6d 100644 --- a/drivers/net/mdio/mdio-xgene.c +++ b/drivers/net/mdio/mdio-xgene.c @@ -79,7 +79,7 @@ EXPORT_SYMBOL(xgene_mdio_wr_mac); int xgene_mdio_rgmii_read(struct mii_bus *bus, int phy_id, int reg) { - struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv; + struct xgene_mdio_pdata *pdata = bus->priv; u32 data, done; u8 wait = 10; @@ -105,7 +105,7 @@ EXPORT_SYMBOL(xgene_mdio_rgmii_read); int xgene_mdio_rgmii_write(struct mii_bus *bus, int phy_id, int reg, u16 data) { - struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv; + struct xgene_mdio_pdata *pdata = bus->priv; u32 val, done; u8 wait = 10; @@ -211,7 +211,7 @@ static void xgene_enet_wr_mdio_csr(void __iomem *base_addr, static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 data) { - void __iomem *addr = (void __iomem *)bus->priv; + void __iomem *addr = bus->priv; int timeout = 100; u32 status, val; @@ -234,7 +234,7 @@ static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id, static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg) { - void __iomem *addr = (void __iomem *)bus->priv; + void __iomem *addr = bus->priv; u32 data, status, val; int timeout = 100; -- 2.30.2