Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5380564rwr; Mon, 24 Apr 2023 03:21:31 -0700 (PDT) X-Google-Smtp-Source: AKy350aAHKN9AQ0dNNhvUjNasKJcIZcs02DC08v34rTnsCLj4/jWLpH2UjB5IYdAXIFoPnU2/qYH X-Received: by 2002:a17:90a:7066:b0:24b:2b8a:d618 with SMTP id f93-20020a17090a706600b0024b2b8ad618mr15480237pjk.9.1682331690681; Mon, 24 Apr 2023 03:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682331690; cv=none; d=google.com; s=arc-20160816; b=NosDTaNHP3cV8PItYrxrOxpAUbxkZH2vaLNsgesA1dZBtxqEVZEL7oWklydkwQNUtl NIXHDHx53EjQfvlR+qZ5JUtiD9rk0P476wYfgBMRNEtgryut8vhAIWa2xkY+QQ6YbDVM E/3Q4FEDVFysU0SUE4/PAwVykFRY8CO74adhoOJDqC4M8tZO4FnNz7ahRM2Nj0tOsUcX ZlJKSJd6bqRbmFPTF3KXIPn2jjg1+Ar+valxxRNCXGh783W632D8IT00PyQDa2zEPU7K mNpup1c6VPs8rgxvl9gZJEUH5g81S6cE71YCR/jsgf6yUFZqWR+SRQWcfvYDbgEz9aDF Emog== 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=EUKtQ3Ups/F/ghpA70iHzbUzRxQqi/2t4U3DdiTC4TQ=; b=bjJ0ug5DDouEosoBHX42SgtUjQG3HM4u8t/jsfYSTc0ERgzRoNYYQnuOFSpYN+tbSJ IJyGPls5wk+Eq2Tmcouq8jRh4kkgUqVRPJC8c3QliIdaacU1PeLpuqhHiqBpJY+sCSoi 41BgIrDnj2/SMKdaFbAa/ONonFEbIfPnEOzf8AHy/DfdE8cTiIdQWIhjjVG+LvdpY1B9 b+de/gSwrG6DbPPchbLgG+mrBXnAB/ZUxhXjugPT/Z3a+wVxz8Qlgimnov4sC+McNfhw 0OIaYnafWpsNSljWIAoBJ3ZEY5spFZuVRRl54Q2MQ0urT7B3d49p6+Eb3Ha6Be0xGt1V 7N6Q== 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 b8-20020a17090a12c800b0023e066d4e2dsi10543044pjg.184.2023.04.24.03.21.19; Mon, 24 Apr 2023 03:21:30 -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 S231557AbjDXKQF (ORCPT + 99 others); Mon, 24 Apr 2023 06:16:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231387AbjDXKP7 (ORCPT ); Mon, 24 Apr 2023 06:15:59 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id CF9B21FEE; Mon, 24 Apr 2023 03:15:57 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 65FB6180156034; Mon, 24 Apr 2023 18:15:53 +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: dp83867: Remove unnecessary (void*) conversions Date: Mon, 24 Apr 2023 18:15:50 +0800 Message-Id: <20230424101550.664319-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/dp83867.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index 89cd821f1f46..03b2ef1bf3dc 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -468,8 +468,7 @@ static int dp83867_set_tunable(struct phy_device *phydev, static int dp83867_config_port_mirroring(struct phy_device *phydev) { - struct dp83867_private *dp83867 = - (struct dp83867_private *)phydev->priv; + struct dp83867_private *dp83867 = phydev->priv; if (dp83867->port_mirroring == DP83867_PORT_MIRROING_EN) phy_set_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4, -- 2.30.2