Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35011875rwd; Mon, 10 Jul 2023 00:58:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKDYElvEoMJWAlksKtazcEqjpcQk/XNBughVgGIJISd+74DgADuaUcV51uZgvu0wMZADrT X-Received: by 2002:a05:6a00:3920:b0:67a:f6f6:ccc6 with SMTP id fh32-20020a056a00392000b0067af6f6ccc6mr12235241pfb.5.1688975925962; Mon, 10 Jul 2023 00:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688975925; cv=none; d=google.com; s=arc-20160816; b=W9wH9SEwZYFzsXnaE5DlxmdPy/llUWnInoQiXhxr3uOm9NmttLElNC0y/VhwiPHdut 0fgg2i44GawnNEavUoxFSN/MJIMyGxo7++EU1WXN4+7DwCmnfiZN3x7A9HIzo3zULigA knC2cF7sANnxQxK6Ateu6RkzxZvl63+Z+ytqlMuADDloUBQe6wUJNerxfTV01GXlI0d/ mgldGkDNHouyKX36h9s/z+G1MbZ4SDPm2PRlejzdowe66aMr1939Y54EJA9yWazP/tCN kGH5M8oynjPv/DOMCyJld61S+5uQp3GAMuDlWaUx5tMu1pmGDkmUb1N39nNbgJydMyXl 9Iow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc:to :content-language:subject:user-agent:mime-version:date:message-id; bh=OrFXkahpwLswVLptg+brYlUBDp1VyUfLVhg4jmCKSi8=; fh=5BOnoC32Xkt6jsnY+HTLSajFimi0OpzMCMYUVw+C+9U=; b=KiTr1mHzC/qr0JUHYARMahDzrrfT2nem+hHjt9sUOiw93aoxZMZx/m6znxc9EyskPZ 2H3VUNHRc00hkSn1Hc7WnetyLKTmTc5yfs0VJaEtd8SPvSdnx8RzFoa4EYi6lsgdU12e prxlcwAAEcpNhbU54IfgUOGBKgagkNMYd64DuPGiaB3B/U76rXub/b7Q3Tgv39u/qYhr CkNcfFl1xAgEwesm1q3C7VFIz9LadNyPyuUVmubBFzWb4JqopruTyEyPsRH8Hh5N6/hJ RkCBJsPXpCezUPSEBUZvnJwSgjqfjE+KVhKEMpVU9u+DFxP8q8rhwZij75VUeiPhPmRj yKMA== 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 v186-20020a6389c3000000b0053f33ec5635si8663547pgd.865.2023.07.10.00.58.34; Mon, 10 Jul 2023 00:58:45 -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 S231687AbjGJHsT (ORCPT + 99 others); Mon, 10 Jul 2023 03:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbjGJHr5 (ORCPT ); Mon, 10 Jul 2023 03:47:57 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 483AD186; Mon, 10 Jul 2023 00:47:49 -0700 (PDT) Received: from [172.30.11.106] (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id 211DA602E666D; Mon, 10 Jul 2023 15:47:45 +0800 (CST) Message-ID: <27537aa7-8a2d-8b9f-4a74-4b7dd2463cf3@nfschina.com> Date: Mon, 10 Jul 2023 15:47:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH net-next v2 01/10] net: wan: Remove unnecessary (void*) conversions Content-Language: en-US To: Dan Carpenter Cc: qiang.zhao@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: yunchuan In-Reply-To: <45519aec-6ec8-49e5-b5b2-1b52d336288c@kadam.mountain> Content-Type: text/plain; charset=UTF-8; format=flowed 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 On 2023/7/10 15:29, Dan Carpenter wrote: > On Mon, Jul 10, 2023 at 02:39:33PM +0800, Su Hui wrote: >> From: wuych > ^^^^^ > This doesn't look like a real name. Hi, Dan, My full name is wuyunchan, but that is too long. So I use the wuych as simplification. I will change it to my full name, thanks for your adivce! > >> 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; > Don't move the other variables around. That's unrelated to the cast. > (Same applies to all the other patches). I want to move the declarations to be reverse xmas tree. Maybe moving them is more better? wuych > > regards, > dan carpenter >