Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18552691rwd; Tue, 27 Jun 2023 19:47:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4leGG/9UBuQK5V0mhokjbaqr573IME7yEeAl9muehae+3LB6cbhw5FIbHaHrPJim2Wx1c6 X-Received: by 2002:a17:907:168a:b0:94e:bf3e:638 with SMTP id hc10-20020a170907168a00b0094ebf3e0638mr126643ejc.11.1687920459637; Tue, 27 Jun 2023 19:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687920459; cv=none; d=google.com; s=arc-20160816; b=hxtEIq8f2u4ELcyjx+pibAGFdN/utk865yXEAtvZ96udLpssQiRjzVJTMNYv+vxWa2 8EIC3XJIWyvBOhnm0J3xXdM8VgOUdi89+eXLTrhSCGPdYV+Dr9CCg++NZyEKwHXRIsB0 v6sKgYSycqV3vMe2F8neTnaJVYENfXjYcn1cazfg3gKDADouYbtRX6JlOcajQ4oOc1v4 ImNc8OVN9K2xizfLEIfLDJp0+O5JN9ex4iTN9Z74xt1RFINzWV9wefs0W9r5GAWTzTDt IPWwzcpXbc4/p6JBto3uaTwX3Oow//7hbTkBaT0CPTZuc/FjyvwWRg/R5AH7Po+g+Rvq 4ZrA== 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=rIPpJafgeZaHMOhE5CpTqpbH7b5aJN838G7wkxNjsDw=; fh=X/ZaM99Qs05jXabnms60OxKs1Q7MnQ1iuRfLJ2Tw5gA=; b=t/uT4USbwqB8Qs6bmuTeX1r2mllLdSv//LszYkfM11Xy5OoKjwwNFHWgDefRQQg5g4 IInx1HvjeU5ju0S289w7JsnKVGjQsSyvmzNGDGcmMdWR9kicYJt42XtBtGAjy/DBD518 zWd1H06D54OgO9Fhj2rSRizNrE6XOnfeW61671NGhhjIWOzFK4S5sp1yZLQp0G5Z0qkR g7vQnA4QvUy+o3T6753t7PYflNgYXjnyPAcZJA+g3FKJL/tbfZulLrpoFQrvcb348yNI ceoSKBsez3kFvPaTYpRLfQujKNTfood6xJ4udWNivjgq0eOSH3I09LUULc0Jxb1b5FOg QIhg== 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 ox27-20020a170907101b00b00987706b7f76si4701912ejb.908.2023.06.27.19.47.15; Tue, 27 Jun 2023 19:47:39 -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 S231454AbjF1Cpc (ORCPT + 99 others); Tue, 27 Jun 2023 22:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjF1CpL (ORCPT ); Tue, 27 Jun 2023 22:45:11 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id B46872D77; Tue, 27 Jun 2023 19:45:06 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 92234604D937E; Wed, 28 Jun 2023 10:45:03 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: yisen.zhuang@huawei.com, salil.mehta@huawei.com, 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 06/10] net: hns: Remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:45:01 +0800 Message-Id: <20230628024501.1440419-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/hisilicon/hns_mdio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns_mdio.c b/drivers/net/ethernet/hisilicon/hns_mdio.c index 9232caaf0bdc..409a89d80220 100644 --- a/drivers/net/ethernet/hisilicon/hns_mdio.c +++ b/drivers/net/ethernet/hisilicon/hns_mdio.c @@ -217,7 +217,7 @@ static void hns_mdio_cmd_write(struct hns_mdio_device *mdio_dev, static int hns_mdio_write_c22(struct mii_bus *bus, int phy_id, int regnum, u16 data) { - struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; + struct hns_mdio_device *mdio_dev = bus->priv; u16 reg = (u16)(regnum & 0xffff); u16 cmd_reg_cfg; int ret; @@ -259,7 +259,7 @@ static int hns_mdio_write_c22(struct mii_bus *bus, static int hns_mdio_write_c45(struct mii_bus *bus, int phy_id, int devad, int regnum, u16 data) { - struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; + struct hns_mdio_device *mdio_dev = bus->priv; u16 reg = (u16)(regnum & 0xffff); u16 cmd_reg_cfg; int ret; @@ -312,7 +312,7 @@ static int hns_mdio_write_c45(struct mii_bus *bus, int phy_id, int devad, */ static int hns_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum) { - struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; + struct hns_mdio_device *mdio_dev = bus->priv; u16 reg = (u16)(regnum & 0xffff); u16 reg_val; int ret; @@ -363,7 +363,7 @@ static int hns_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum) static int hns_mdio_read_c45(struct mii_bus *bus, int phy_id, int devad, int regnum) { - struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; + struct hns_mdio_device *mdio_dev = bus->priv; u16 reg = (u16)(regnum & 0xffff); u16 reg_val; int ret; @@ -424,7 +424,7 @@ static int hns_mdio_read_c45(struct mii_bus *bus, int phy_id, int devad, */ static int hns_mdio_reset(struct mii_bus *bus) { - struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; + struct hns_mdio_device *mdio_dev = bus->priv; const struct hns_mdio_sc_reg *sc_reg; int ret; -- 2.30.2