Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5131102rwp; Sun, 16 Jul 2023 20:40:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlFaUwMqocvTGXaW/JoWUJcUTaPPA1JaqhFKdKXFSZSzLijZvCFLIra2xemRk/V7dkeRJeTx X-Received: by 2002:a17:902:e883:b0:1b8:1591:9f81 with SMTP id w3-20020a170902e88300b001b815919f81mr6553877plg.4.1689565254998; Sun, 16 Jul 2023 20:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689565254; cv=none; d=google.com; s=arc-20160816; b=pamcgti3KKTMEjaYSmxrytru2qmQ+thbYjxtHWOPQjABFMLBN9I9zZEjRsvHc2EZWA VitkCH4Ap5t3hOohCbrqG6f3iRKNbko+yEteEn8Imj+L5NB2FQTXQJpIjTPyHBWmUgaQ jK/KC22BcATcINc8XiCSRHjwGxPf4kh3OHIII9DGIb+5azkwSpJOs9i1wJxs+3bHcDzX ozRrgL1bTIQA17GbPu2jF/mEx3R1Nt2uPNPwnAaSRUDqHZGBfghcT/kwNKzWTvh9D3rC 0XIyKwG/zcpTD5pQ44VTir7DotL0ipVyLKWEP/j+Msq121jLbWO5i/+B9JONkSkYTTo4 PQ3w== 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=DsbxqZTdCBRS2ojxlFILZ4rEX/YAs9s4ITG9IAdOQQY=; fh=Di1RypyzTw859Myl4rb6Qvt0oYks6wzavwOM4El5CCk=; b=uPzeo4+4rakzxWnUpYVEttq/XQdjfnzKvuEpG4iLc+LluDcRnGEwz+TCegYQQGQBtY sBaKL1uAMbZFO+NQGK50/IsFxNDK2P59+Z41o57vxuerIHgvUkHG/fWfBFLq/TwNr1yn J6QxKz25GdPS91TgDvUbViU54i0YqZbP31yZyw51fAnl1d85C8f4UzCfDi51jJaQVRfp A9r4jVCSrFTOtSP+fxyeWDP0qj/XwgxnwICtE8YPPlh3E7pT5qlsAzXar0jA+vKzNCfg YhIvkHY5B7SpSyUOI1UzNE9qA1ZiCdV8VeD6JZcd0iJF7+a4E69vAgrDzUBdklDNrWlV KVUQ== 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 jf21-20020a170903269500b001b6b08f03ccsi10525172plb.345.2023.07.16.20.40.43; Sun, 16 Jul 2023 20:40:54 -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 S231351AbjGQDMH (ORCPT + 99 others); Sun, 16 Jul 2023 23:12:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbjGQDLr (ORCPT ); Sun, 16 Jul 2023 23:11:47 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id A6E52E51; Sun, 16 Jul 2023 20:11:42 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id ECAF16012605B; Mon, 17 Jul 2023 11:11:38 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan 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, Wu Yunchuan , Hao Lan Subject: [PATCH net-next v3 4/9] net: hns: Remove unnecessary (void*) conversions Date: Mon, 17 Jul 2023 11:11:37 +0800 Message-Id: <20230717031137.54639-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 hns_mdio_device *). Signed-off-by: Wu Yunchuan Reviewed-by: Hao Lan --- 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