Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5125953rwp; Sun, 16 Jul 2023 20:31:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlE3V9jWqiY6vwOi8rOSHg2aGMHyZEJG/q8fMo4hVQZcoX6fAMmB6R15315hgIvC6uPhDHZ1 X-Received: by 2002:a05:6a00:1f97:b0:677:3439:874a with SMTP id bg23-20020a056a001f9700b006773439874amr11225896pfb.3.1689564664682; Sun, 16 Jul 2023 20:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689564664; cv=none; d=google.com; s=arc-20160816; b=g0YbXaePGpfogd9ylq0gZUMd2uALDKfrypKQQpwVbOlWC7EBYudmWusK6KNuG05CzX viJ9I/+obOQWG5kea5hNFqq2E9CVx0+DbQBqT0D/tYUxguCJzVNcCqrmK6ugvPvDJAAp iHmaCh1iq1uSjMyrgc9PvkfIT8DvtuFB18YgbgK2rWJPmPjSo2hn+OIPyd5DL3+CPmHd KVvIWV0s1I5FqJQs4eLqgqMlmH/kV1K2BTKHzCtsdwxUvBCs+pcXGVxLuTa9CKOpT/ka +8Hzh+M6+uCQVzbeAxQxVzPgf5XPNpwVqGa+xXAKy9hShjVUmDTRhXkc9q1cChnDSwvt cDDA== 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=v2gXaNmIlstPsUW9B7N23VD/Pji0npo4J8MFUDK535E=; fh=tsEn9cAcxyQ7JcLCAc2eptJ/MCqOQ2n/ZFrjecngMKs=; b=s5OpxdAn44tEWAmvigqoJe2XWHY0PnVYncZpfex9Qo87i3p+IuPcvd6Oj+GraX3RC0 fAsfszl4/C0tgu9lNe8/3/kCUrJ0SdoEcnuWfnubaL2P0IlZ97iASbXCBpk2Xb53zmyN 1y6SOtfVgfelYpXsqOYw8WiuvU/X0HdZ4u3emxhPBtmSQ/4J4OabZp0kvKUTOmqzfP2p j9oj4KyyzJbz53WJtRM3u5FVI1/yD0LS5sYsjYhesE7/ZpH1nC2KAvWr5mWnVIKqjZVC I8wr3avsDrDDhMTzTkmaGqip8fIMQELIjrgTPB7tNf2SwybXGrF7yvDNDL+g48kuFcKT ThSg== 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 be14-20020a056a001f0e00b0068219eb2796si10861628pfb.267.2023.07.16.20.30.52; Sun, 16 Jul 2023 20:31:04 -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 S231278AbjGQDNL (ORCPT + 99 others); Sun, 16 Jul 2023 23:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231244AbjGQDMn (ORCPT ); Sun, 16 Jul 2023 23:12:43 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 3A5C010F0; Sun, 16 Jul 2023 20:12:22 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 5E8326012605B; Mon, 17 Jul 2023 11:12:13 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan 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, Wu Yunchuan Subject: [PATCH net-next v3 7/9] net: mdio: Remove unnecessary (void*) conversions Date: Mon, 17 Jul 2023 11:12:12 +0800 Message-Id: <20230717031212.54991-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, RCVD_IN_DNSWL_BLOCKED,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 No need cast (void*) to (struct xgene_mdio_pdata *). Signed-off-by: Wu Yunchuan Reviewed-by: Andrew Lunn --- drivers/net/mdio/mdio-xgene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mdio/mdio-xgene.c b/drivers/net/mdio/mdio-xgene.c index 7aafc221b5cf..683e8f8319ab 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; -- 2.30.2