Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18825740rwd; Wed, 28 Jun 2023 00:53:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5eHL3odeUgXdENNPtgN/JGnizTRZeDsZmjmnssKZB/379rFY/ZrvwM6QMVVZFWjHQKaSfW X-Received: by 2002:a17:907:7246:b0:991:b7f4:31dd with SMTP id ds6-20020a170907724600b00991b7f431ddmr573152ejc.2.1687938821229; Wed, 28 Jun 2023 00:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687938821; cv=none; d=google.com; s=arc-20160816; b=Hh89wjwT1e7P3DceBDnvaRjFvfliLUSDDsUqJZpoHc/1quFLccoTkXCzqyJ7RQOJhQ IG2MkS2Yk/zOqD+Yvz4JZ9zPnjD88ILpfGyIgat/Hu+MkUtGYZe8lwaOo5NiAGjkkTO1 INWoYq35ILUnIJvzy1yXCQEH5ndl0K1RcOrKIo8b2zrCvLvYcesJv8Nsblc+99Y4KLwQ s+hqV233BK/snL646qzqTVOkX6Dbm6hT7iXPX8W5qzQ0fqY4izdtQpOTCChTDmdAlnzz 7ywC6RrANPvRbXVi/gXcML6pkRl7xbUqAb/ZpZCviaKHZ2aaglvEkTuJ4GSXTMaD49Sz nieg== 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=cbdmJT+NxV9x+xPrx3+ecEP5bo1dmQTSPvCtVr+rc+U=; fh=Y3RZn2Y/aXZ1X38jdDKQATD8VF0BZHwcmqABFJtWFpM=; b=uwdYWuCGH6u1zufXBpLTx/GCrZ7vK1iAk4zLuIiRaNDvX2tRJ+IhGIZFK6WojOZD7x U4MWVV6UUnpq4v04I5Hhp+W3h6XO7aQ3/ndRyJ6vPWXUjKgAb/u9fTCT8T+4vUpXVgGK GXFfZBzvEKIU/5WMszf7v4Pjw4eqNCShO2fNHH9Pldc0f528rj5lxBrmsd1sE+Qn/bhp gJWMRVPuB/cYG1j50YfCGLFX0IesDo0vsAwPKKKVDtPX2E8GyPoiVYP2dEb1TBXLxPBn tqidywbFSK0rICLtY6jFEpSMo2YAqBCu8P/z5gCc4X+q5dtCAMchZ6UMIKYVzjeLHBeg fteA== 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 xa10-20020a170907b9ca00b00986486cb8d6si4978378ejc.705.2023.06.28.00.53.17; Wed, 28 Jun 2023 00:53:41 -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 S231367AbjF1CpU (ORCPT + 99 others); Tue, 27 Jun 2023 22:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231374AbjF1CpH (ORCPT ); Tue, 27 Jun 2023 22:45:07 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 5457B2951; Tue, 27 Jun 2023 19:44:58 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 612A2604D937E; Wed, 28 Jun 2023 10:44:55 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: steve.glendinning@shawell.net, 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 05/10] ethernet: smsc: remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:44:47 +0800 Message-Id: <20230628024447.1440310-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/smsc/smsc911x.c | 4 ++-- drivers/net/ethernet/smsc/smsc9420.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c index 174dc8908b72..c362bff3cb83 100644 --- a/drivers/net/ethernet/smsc/smsc911x.c +++ b/drivers/net/ethernet/smsc/smsc911x.c @@ -552,7 +552,7 @@ static void smsc911x_mac_write(struct smsc911x_data *pdata, /* Get a phy register */ static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx) { - struct smsc911x_data *pdata = (struct smsc911x_data *)bus->priv; + struct smsc911x_data *pdata = bus->priv; unsigned long flags; unsigned int addr; int i, reg; @@ -591,7 +591,7 @@ static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx) static int smsc911x_mii_write(struct mii_bus *bus, int phyaddr, int regidx, u16 val) { - struct smsc911x_data *pdata = (struct smsc911x_data *)bus->priv; + struct smsc911x_data *pdata = bus->priv; unsigned long flags; unsigned int addr; int i, reg; diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c index 71fbb358bb7d..3b26f1d86beb 100644 --- a/drivers/net/ethernet/smsc/smsc9420.c +++ b/drivers/net/ethernet/smsc/smsc9420.c @@ -102,7 +102,7 @@ static inline void smsc9420_pci_flush_write(struct smsc9420_pdata *pd) static int smsc9420_mii_read(struct mii_bus *bus, int phyaddr, int regidx) { - struct smsc9420_pdata *pd = (struct smsc9420_pdata *)bus->priv; + struct smsc9420_pdata *pd = bus->priv; unsigned long flags; u32 addr; int i, reg = -EIO; @@ -140,7 +140,7 @@ static int smsc9420_mii_read(struct mii_bus *bus, int phyaddr, int regidx) static int smsc9420_mii_write(struct mii_bus *bus, int phyaddr, int regidx, u16 val) { - struct smsc9420_pdata *pd = (struct smsc9420_pdata *)bus->priv; + struct smsc9420_pdata *pd = bus->priv; unsigned long flags; u32 addr; int i, reg = -EIO; -- 2.30.2