Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34953988rwd; Sun, 9 Jul 2023 23:57:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEniwKg9rgEvIFXuv+hK/D0XaVk+GivoNVifAr3nEiGnrHy4+V4dNMpzGdDIih5lnKLbF9F X-Received: by 2002:a05:6402:1857:b0:51e:281a:66a4 with SMTP id v23-20020a056402185700b0051e281a66a4mr11606175edy.38.1688972242445; Sun, 09 Jul 2023 23:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688972242; cv=none; d=google.com; s=arc-20160816; b=liOLFGZB6gIz/4jNdG+biL3pnbEIjraoAQvYeFk+muaYLhcARE0vvIeUIXTCiRaB+8 Cihakj88soy/2FOXW/5GYg88DfibYg4wWqUIcDfo7W36IgEkuHWw5xHWKOw2ctom4ASc c1gtG67xyVzJ4uhousFRL+W6bztj7SV0tfD8LDZlLq00zngi6eJeNJOwzJAKKsAuMGeb Lb/xoEQfhXm82OCjmiTmI5rPDOusY38krWzn22f/648q6RcSW/7zVJWQ3BdiQyyTDYbA N/pIKoOYmB5jPe2yL1EV2UXsmyt6tzOz37EYf77OKfusw+vXYu/r0C2I33gjttsa9A5m aenQ== 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=swZdki7sW/IaVPO6oz+5ebxLHR28VWXQVoKoMffdNDs=; fh=tSDO2OWH3/0DxGJOX1QHckgPUZckW2ZUB+tMWqz/Fn8=; b=coeFsg5M7raQ1OvPDmlQUN/I9MoZuqVA4F4YfXYWEi1fPCaubm5z6oNeaXJnDsncsk IkvMRHOgnpvN634FVI+YTGjoApR+DjGyXewF/znfqcNQfzu9K1wBTJS+Nj5WrG+6+g9a ykbjE7hDG7dqnnoTieb58VFDyNQJJRNcthJe91FcAgAgvNkKD4ViGz2Ppw2gWSKnm++z G8yjKNDA8GOAqViNAsQfrhat+B/klfTEkIo47QxlaCmb9oYjSiIuq+AQh5xKJGl8LFsw WYd3SDKRTJCzbw4YhpgvvZx3f7ce1wDx+jarh6vlUJ9PK9W1t05sdFBaQyXvai2Mp42n 46yQ== 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 p13-20020aa7d30d000000b0051e05cd617fsi8883375edq.39.2023.07.09.23.56.58; Sun, 09 Jul 2023 23:57:22 -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 S230247AbjGJGjm (ORCPT + 99 others); Mon, 10 Jul 2023 02:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbjGJGjl (ORCPT ); Mon, 10 Jul 2023 02:39:41 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 5FC0B137; Sun, 9 Jul 2023 23:39:39 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 8BB4E602A8713; Mon, 10 Jul 2023 14:39:36 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: qiang.zhao@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH net-next v2 01/10] net: wan: Remove unnecessary (void*) conversions Date: Mon, 10 Jul 2023 14:39:33 +0800 Message-Id: <20230710063933.172926-1-suhui@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 From: wuych Pointer variables of void * type do not require type cast. Signed-off-by: wuych --- drivers/net/wan/fsl_ucc_hdlc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 47c2ad7a3e42..73c73d8f4bb2 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -350,11 +350,11 @@ static int uhdlc_init(struct ucc_hdlc_private *priv) static netdev_tx_t ucc_hdlc_tx(struct sk_buff *skb, struct net_device *dev) { hdlc_device *hdlc = dev_to_hdlc(dev); - struct ucc_hdlc_private *priv = (struct ucc_hdlc_private *)hdlc->priv; - struct qe_bd *bd; - u16 bd_status; + struct ucc_hdlc_private *priv = hdlc->priv; unsigned long flags; __be16 *proto_head; + struct qe_bd *bd; + u16 bd_status; switch (dev->type) { case ARPHRD_RAWHDLC: -- 2.30.2