Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5600680rwr; Tue, 9 May 2023 03:59:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LmjPAKihgfBKgKgbHN8jyaJNJuGZqR2nNQcCaCLp0AN1ES6/Nfa2nwj21lhV5X2dYqfPf X-Received: by 2002:a17:902:ce84:b0:1ac:a030:c30a with SMTP id f4-20020a170902ce8400b001aca030c30amr1337790plg.19.1683629967774; Tue, 09 May 2023 03:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683629967; cv=none; d=google.com; s=arc-20160816; b=oacTHSMHr5DvoLo2XbvDhK4wRa0f5Q6Q9W6KVhWz+JSaBFMQ4dOhcKSRdMgRvxI8yu 3tinNe6VQaNvhoaoZ1Q1Ac3DXYqRDwzkYUOClRl1UHze98LjsUmiXfJKeYc+mIbpZqud Z0sEySwtV1zvoGKF+ilgBBhNwZXiewG2Ov27RP5GYOq6adcoAA+TYLe2EJImIVLvSaYS x7sOeuXtqw8+4zxpj4LD0y7Udrrpoq1+38y3yxWcqehC0CwoKjIi77GdWqj4ae3OYD0N rAqrQ/WY7O8UfJVuAfuEgpNyEIzxvTkFNozdLDGWMIRXGgL5GCjTI4ElWTqkOf8QlsFA 8TJw== 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=aCV6BDBTRlzgngmg2EE81F62BQPAmz7ylY4IynfgZA0=; b=KKRXZ/0m5e1AdujP+G4ObmGHJNh2mnFIgSnstBCBkwMie6nb03Oh5+bcQwokEjnJ21 5PsqM/SHQWo+KEde23+SCtAT3P5SMCz+izMnvmqSWNh4KTfzDryScbfClZmYoblK4DvU 8zPeJiPUr0XB56I3rdFwNtuf5qjVLvFOGJ44bwdpB1opsFT47LNY/7H+9ogr8UU0ZoSz f8sApoUB1nTCMZlqxr/wsMVKwMlDf8kb9uCGZSiP1GqMSFhIf0NeJTXazXePZRfPwaU0 75cGWwfJihM35lNlZzOimvtrmNdDogSAwHNffkwdRaRA6bBa5J22MwiYB7LFCjv9rYQq g2Vg== 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 l13-20020a170902f68d00b001a69f1cea63si1331411plg.223.2023.05.09.03.59.16; Tue, 09 May 2023 03:59:27 -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 S235225AbjEIKZn (ORCPT + 99 others); Tue, 9 May 2023 06:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234971AbjEIKZ1 (ORCPT ); Tue, 9 May 2023 06:25:27 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 2B8F3D87E; Tue, 9 May 2023 03:25:24 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id BA7E2180140432; Tue, 9 May 2023 18:25:02 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com Cc: andrew@lunn.ch, michael@walle.cc, zhaoxiao@uniontech.com, andrew@aj.id.au, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH net-next] freescale:Remove unnecessary (void*) conversions Date: Tue, 9 May 2023 18:25:01 +0800 Message-Id: <20230509102501.41685-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/ethernet/freescale/xgmac_mdio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index a13b4ba4d6e1..167a7fe04853 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c @@ -131,7 +131,7 @@ static int xgmac_wait_until_done(struct device *dev, static int xgmac_mdio_write_c22(struct mii_bus *bus, int phy_id, int regnum, u16 value) { - struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; + struct mdio_fsl_priv *priv = bus->priv; struct tgec_mdio_controller __iomem *regs = priv->mdio_base; bool endian = priv->is_little_endian; u16 dev_addr = regnum & 0x1f; @@ -163,7 +163,7 @@ static int xgmac_mdio_write_c22(struct mii_bus *bus, int phy_id, int regnum, static int xgmac_mdio_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, int regnum, u16 value) { - struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; + struct mdio_fsl_priv *priv = bus->priv; struct tgec_mdio_controller __iomem *regs = priv->mdio_base; bool endian = priv->is_little_endian; u32 mdio_ctl, mdio_stat; @@ -205,7 +205,7 @@ static int xgmac_mdio_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, */ static int xgmac_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum) { - struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; + struct mdio_fsl_priv *priv = bus->priv; struct tgec_mdio_controller __iomem *regs = priv->mdio_base; bool endian = priv->is_little_endian; u16 dev_addr = regnum & 0x1f; @@ -265,7 +265,7 @@ static int xgmac_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum) static int xgmac_mdio_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, int regnum) { - struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; + struct mdio_fsl_priv *priv = bus->priv; struct tgec_mdio_controller __iomem *regs = priv->mdio_base; bool endian = priv->is_little_endian; u32 mdio_stat, mdio_ctl; @@ -326,7 +326,7 @@ static int xgmac_mdio_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, static int xgmac_mdio_set_mdc_freq(struct mii_bus *bus) { - struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; + struct mdio_fsl_priv *priv = bus->priv; struct tgec_mdio_controller __iomem *regs = priv->mdio_base; struct device *dev = bus->parent; u32 mdio_stat, div; @@ -355,7 +355,7 @@ static int xgmac_mdio_set_mdc_freq(struct mii_bus *bus) static void xgmac_mdio_set_suppress_preamble(struct mii_bus *bus) { - struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; + struct mdio_fsl_priv *priv = bus->priv; struct tgec_mdio_controller __iomem *regs = priv->mdio_base; struct device *dev = bus->parent; u32 mdio_stat; -- 2.30.2