Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18551914rwd; Tue, 27 Jun 2023 19:46:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7auLgPYu8i9iHfwD/lVZfJAnLiePU4ciYqM7Znsr25zSs+eBGPPcRKGoNA66AjqYw4G0Vt X-Received: by 2002:aa7:d351:0:b0:51d:9737:5257 with SMTP id m17-20020aa7d351000000b0051d97375257mr4849546edr.40.1687920400161; Tue, 27 Jun 2023 19:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687920400; cv=none; d=google.com; s=arc-20160816; b=nlVWeYsSh1o7BF+hikFZ2qmQohP9l7k6+7S8fu/yRsCvGhuVZj/+B+q2fONPqARrh3 CqTByaRosi7dqlM8UfCGUNX89ve2OXXVatay3sdP6+TgNv0s0bCwaSA565I+EXILBj1H 35J84/uZsATNM+ltM+jPC/aF0IWaHk1IrUFjp8wOIOp2794LwRcP9dGzA3szA7dD2/Ad acd4BHOLVxXAM+RSDu9bc3jBCpfeA90MN6vXe1GJfvdk+cGSgweEr/SANi+GpUBa8N65 bRnfqcWT0UikjikoyVvqeWuC8MzfEvhv0O1vi5Qo2xK7REEQnHJJRDcFCK1mgeVLcjPE Pknw== 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=O1OzNZUq/YDPPafYhxOSpWjrqTxyzUfvtxUkW7CMUv8=; fh=REffR8e8QCsX17IrVVgmUW1peJcDsw7BWnTONMJ2gxM=; b=kgFGw/Qk4v8Ni2HP/dgLthHRU2EjCJBb/eBs5jjoVTtg91ePrgq3iJa8ky8gIhjU1v tGieVi+IZvFK00RmfTAcIx2+ETQyJnnhKrLpo8KBBMCqtEqXwi9OWn+RFWOAna4bx0E0 Six3wAIVxr9halMVAz3ohgLkniRqZ2chv43FMfCz8lRoyqejK8t3oaRqB/sywrCA8Hsi DGeiJiFs9G4aNRAdfrCtq3bqxDT3wHUfisSjVHiUBCbyO9bb3XoTCxKR+P8gTEigK4fm kFxcieEEXctNyMUyHaIkQFISx1+lqPO4mKIwO9A9MZnP+QP0TaVD63gAOpFHINDbjErn UAVQ== 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 t16-20020aa7d710000000b0051d9acd325bsi3113753edq.473.2023.06.27.19.46.16; Tue, 27 Jun 2023 19:46:40 -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 S231224AbjF1CoQ (ORCPT + 99 others); Tue, 27 Jun 2023 22:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjF1CoJ (ORCPT ); Tue, 27 Jun 2023 22:44:09 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id BAE392D53; Tue, 27 Jun 2023 19:43:55 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 0F39E6032EB52; Wed, 28 Jun 2023 10:43:52 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk Cc: yangyingliang@huawei.com, yunchuan@nfschina.com, linux@rempel-privat.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH net-next 01/10] net: dsa: ar9331: remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:43:50 +0800 Message-Id: <20230628024350.1439849-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/dsa/qca/ar9331.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c index e7b98b864fa1..b2bf78ac485e 100644 --- a/drivers/net/dsa/qca/ar9331.c +++ b/drivers/net/dsa/qca/ar9331.c @@ -391,7 +391,7 @@ static int ar9331_sw_mbus_init(struct ar9331_sw_priv *priv) static int ar9331_sw_setup_port(struct dsa_switch *ds, int port) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct regmap *regmap = priv->regmap; u32 port_mask, port_ctrl, val; int ret; @@ -439,7 +439,7 @@ static int ar9331_sw_setup_port(struct dsa_switch *ds, int port) static int ar9331_sw_setup(struct dsa_switch *ds) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct regmap *regmap = priv->regmap; int ret, i; @@ -484,7 +484,7 @@ static int ar9331_sw_setup(struct dsa_switch *ds) static void ar9331_sw_port_disable(struct dsa_switch *ds, int port) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct regmap *regmap = priv->regmap; int ret; @@ -527,7 +527,7 @@ static void ar9331_sw_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int mode, const struct phylink_link_state *state) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct regmap *regmap = priv->regmap; int ret; @@ -542,7 +542,7 @@ static void ar9331_sw_phylink_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct ar9331_sw_port *p = &priv->port[port]; struct regmap *regmap = priv->regmap; int ret; @@ -562,7 +562,7 @@ static void ar9331_sw_phylink_mac_link_up(struct dsa_switch *ds, int port, int speed, int duplex, bool tx_pause, bool rx_pause) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct ar9331_sw_port *p = &priv->port[port]; struct regmap *regmap = priv->regmap; u32 val; @@ -665,7 +665,7 @@ static void ar9331_do_stats_poll(struct work_struct *work) static void ar9331_get_stats64(struct dsa_switch *ds, int port, struct rtnl_link_stats64 *s) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct ar9331_sw_port *p = &priv->port[port]; spin_lock(&p->stats_lock); @@ -676,7 +676,7 @@ static void ar9331_get_stats64(struct dsa_switch *ds, int port, static void ar9331_get_pause_stats(struct dsa_switch *ds, int port, struct ethtool_pause_stats *pause_stats) { - struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv; + struct ar9331_sw_priv *priv = ds->priv; struct ar9331_sw_port *p = &priv->port[port]; spin_lock(&p->stats_lock); -- 2.30.2