Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6496207rwr; Mon, 24 Apr 2023 22:17:47 -0700 (PDT) X-Google-Smtp-Source: AKy350a8NjJcoryfwcYA29iIZ74LMByuasm2JGXBGna+P57+TXVjUCjGwO/tBKiQLb4alMMa8AVA X-Received: by 2002:a05:6a20:9592:b0:f0:7679:e5b2 with SMTP id iu18-20020a056a20959200b000f07679e5b2mr19496642pzb.42.1682399866631; Mon, 24 Apr 2023 22:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682399866; cv=none; d=google.com; s=arc-20160816; b=AhW56Stc2jPB9LLnaJli8gg2qZRtgB/uIQDMxXTkBFGszbRlkR5+imyxMsAOTQQOZZ FvxNRqleXP2vtkIz5cwA+07uRLhWA6V+WBuAQcVHQKmzQnoM0s42Z7wiCgRGvIsrZNNy RPOiO+SPYAVPgFoYECbQcfVUHNptMYRtMvgK4EAgOQ9LJxzGvwrmo5zlsPU5Wuy7j8HS QTt/GRFPKY0cvbnu+ztchRI8APBqiJuYaUVF+9fnwyuCYc1kfxXJNEmCnDzHbr6mkVBE sDlfcie1+YnAh4q5exFrCRrMncIpc+EJlUrBz3CU8ghf7r4pqEl7ESmpMidM91FsVP1H 8e1g== 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=B8h20yuYWx6buhjFqqAOFSk74AuoppVcO659+IcqDFA=; b=DACY/FbAN1SIp0g8hn54l4Tnf1Lwazbu3Kv8tCUAVEiiuyDHBdcqXlm2wje5Qp9SWX s+DvjF3ws/3U0tIn9v09fMfANfAbC//GKy92t29WKnsqeji0dEt56W5LTBL700Te9imx BvVuh7syd+rxrUMa+PGTUNr4qA/6fEhHIp7aR1ePa48POoGWSlUhH/gFe0wV/YHDqOyd ME7nqMK12j+HbZRyDUjPU5fOGwhD1Hi1zZZ27X6EVNsFkpA/ysQvMUReO0nhydcxykXJ 9ZnGnqHbJukkpZsOfgue3PeJK5sIy0cuY/oTX5ol7rshniqOys3XsG4hd9Rqgz1Y9cow HkLA== 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 q19-20020a631f53000000b00518f82d7053si12928545pgm.493.2023.04.24.22.17.33; Mon, 24 Apr 2023 22:17:46 -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 S233180AbjDYFP5 (ORCPT + 99 others); Tue, 25 Apr 2023 01:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232741AbjDYFPv (ORCPT ); Tue, 25 Apr 2023 01:15:51 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 6104C8682; Mon, 24 Apr 2023 22:15:49 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 7DB9B180509A0C; Tue, 25 Apr 2023 13:15:46 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: linux@armlinux.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH] net: phy: marvell-88x2222: remove unnecessary (void*) conversions Date: Tue, 25 Apr 2023 13:15:32 +0800 Message-Id: <20230425051532.44830-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/phy/marvell-88x2222.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/marvell-88x2222.c b/drivers/net/phy/marvell-88x2222.c index fd9ad4820192..f83cae64585d 100644 --- a/drivers/net/phy/marvell-88x2222.c +++ b/drivers/net/phy/marvell-88x2222.c @@ -487,7 +487,7 @@ static int mv2222_sfp_insert(void *upstream, const struct sfp_eeprom_id *id) __ETHTOOL_DECLARE_LINK_MODE_MASK(sfp_supported) = { 0, }; - priv = (struct mv2222_data *)phydev->priv; + priv = phydev->priv; dev = &phydev->mdio.dev; sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces); @@ -524,7 +524,7 @@ static void mv2222_sfp_remove(void *upstream) struct phy_device *phydev = upstream; struct mv2222_data *priv; - priv = (struct mv2222_data *)phydev->priv; + priv = phydev->priv; priv->line_interface = PHY_INTERFACE_MODE_NA; linkmode_zero(priv->supported); -- 2.30.2