Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5117717rwp; Sun, 16 Jul 2023 20:15:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjGO0VniSawsxJ+e8AX//GZ/wYW0zygF9V9wrAF1CglM2JdZCdEI3/L08vUoX/PFwo76SC X-Received: by 2002:ac2:54b2:0:b0:4fb:7381:952e with SMTP id w18-20020ac254b2000000b004fb7381952emr1954508lfk.2.1689563716396; Sun, 16 Jul 2023 20:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689563716; cv=none; d=google.com; s=arc-20160816; b=eFpzniiaGXCKV8ixLGT3ePxdI+9ffW1M2iu5Piwf7ET+OjPbDH9p+VMzOKudurynK2 IQiRPMBjc4RYnr3Ygih4ZFLk2BCHXmz5Lldouqp/BPB/aAcfIJcOCyJnQO5QWOIwFIVC F3X5wNsadNlq6C4amoMyjstbct9F5kam9+ZW6iQowbT+ZqxRtjNhpyqWq+Hb3qtaEuRi qsSsJuUOwREC9z0zbI/XywaAiG9Y8KJm3XnxU35nq6mUX2NmmYDEZm74LE9TJll7Lo9H oh42ie+pV4IKtyp0Yv1rjxt7ofjiYn5xDTv5/pPSDoAP8PxJaaQsljUV2E4Z9o+E6bUu 2G7Q== 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=5fGZyY1CuEoKy/eGpmjaVFb2rXdBeiKjeWqs/X0NE64=; fh=S36IVFiPzfsgIR2ySP0il4EmEmqnIFwp0vuhFLgYvP0=; b=klDjf7b690yMBX6qjVgID0n0aFpQUdoFYyDL4lv5rejjDB8hBP5oEqhaIlYMrzPQar 3e33Z7VoItTC66Ieirq5OsVQGS8/blFS40SsP1rJTRRYYIU9hXv5XdrYT3ffbY1Qgt3P eagjrljLgBT2IGXXbcBfnP9fDMZ6oiuVvxIz4xR7/VMOKdrA2p0BgfgATKlBQtKY7D/X EIDg8y8HlkBy6La7Wwg23HnE5oVMD17porq3yTIMXSTuELIdR9tmdNTe9OgnApR8AUaR YranSvhuww3d/hEIFsrcUwvaMr0EPMW6R32Gz5qxaasEGR4wHTZn9zBNUmJoi1FHe1y4 r7Uw== 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 r4-20020aa7cb84000000b0051e24cc65c0si12918975edt.669.2023.07.16.20.14.52; Sun, 16 Jul 2023 20:15:16 -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 S231377AbjGQDMw (ORCPT + 99 others); Sun, 16 Jul 2023 23:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231301AbjGQDM0 (ORCPT ); Sun, 16 Jul 2023 23:12:26 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 50EB2E4C; Sun, 16 Jul 2023 20:12:09 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 13C246012605B; Mon, 17 Jul 2023 11:12:06 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan 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, Wu Yunchuan Subject: [PATCH net-next v3 6/9] ethernet: smsc: remove unnecessary (void*) conversions Date: Mon, 17 Jul 2023 11:12:04 +0800 Message-Id: <20230717031204.54912-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 (voidd*) to (struct smsc911x_data *) or (struct smsc9420_pdata *). Signed-off-by: Wu Yunchuan --- 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