Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35648097rwd; Mon, 10 Jul 2023 10:20:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHzRoyq2ADmLoCjFhsh9w0F++onbMr5Wi4qFKY0h3jUEoOsgxgN/kvp9F7x2oThDIb7Hi+0 X-Received: by 2002:a2e:2414:0:b0:2b7:2db:8ea4 with SMTP id k20-20020a2e2414000000b002b702db8ea4mr10961476ljk.30.1689009613009; Mon, 10 Jul 2023 10:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689009612; cv=none; d=google.com; s=arc-20160816; b=zepRroOwCufGoSXlqu2RnO4uwv6fae1RKH3r5m+x9L0KscWX5sIl3/FGXWXIgnzdwH iZL9SRuI7mE4z3/b8rkFYb0A27OeWtafmZkV0Ipl+UMUtI94veiA8X+SbwlO0nR8f6S9 xk7bEGOxlYnHwI8ZfikdOyWZQbRCFVet0XSsLhZoEHAo9WaHZ0nLOUZCe/csww8Hip8s c/sGZl/Jvh3wHpwpzmTJWHsfeMjt49qgeIhtDkKbxTmnYNXrXRQ22h0yR7BgKwvrKoA1 hg7bBFQGuwD1xLZAsGCfF5CezXd71U12nh88vTjpdys/qWLzbW/PwxYmOLcvxPFe3LEE iZ5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jLGZ8Kt5cT2lpnt9z22M2igMnkaIHF8gwZa/YIMfnqM=; fh=Vw/zauInsRnBxrTDgmh/yI8t72go1wMT8ZZMrm8sNjA=; b=OQlX/adxgft1fklmVzkW1+vNbUvZcXNcpElilbRwjF7aLgI8421nJW7KGCirPTRRId Ary/SDeyUseyzNmqaQp7Iv+/pUghEyPUcs9ktpqvpQS6v9jdqSwV6F01sc1G9Kwj8leO Tnix5etb4zDoLt4FcsbddFtYRYifC1QWy+kfIvOaqZrc0TrniYbhk48lnXOPB3iC00tV dAdimuAwWR31XMcpfV9q9gXe2ppFhaSNqQvzWa3NEnoT/GdVQMnDHRiQA4e4IukUBveb Zg1Ssw6t3Ra22EoEs30aPyrEHYUG6d40wV9orwTsZQjkrx7hhOst1QyzQ4Fi5GMv4RSZ t1rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="z2G0+8/G"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170906770d00b00992437c5880si24961ejm.327.2023.07.10.10.19.48; Mon, 10 Jul 2023 10:20:12 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="z2G0+8/G"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbjGJQet (ORCPT + 99 others); Mon, 10 Jul 2023 12:34:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjGJQes (ORCPT ); Mon, 10 Jul 2023 12:34:48 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D7DCC0; Mon, 10 Jul 2023 09:34:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=jLGZ8Kt5cT2lpnt9z22M2igMnkaIHF8gwZa/YIMfnqM=; b=z2G0+8/GJfV/RuF2lZu7GATCK4 wsXBdaF4/3pPUB5Nyp+xNiYERioTgNDxfkSML5BjoZGDbndl5UpmdyepkYpVVN41wC/CEmLQaWSqv 9iPHY5Os1WStwXUKOwkoM6bweMfJ5F8Z6IpqdRJXdKjNKGsGZDFEeRCqMJKusLJ16LRM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qItqK-000xlL-WE; Mon, 10 Jul 2023 18:34:33 +0200 Date: Mon, 10 Jul 2023 18:34:32 +0200 From: Andrew Lunn To: Su Hui 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, wuych Subject: Re: [PATCH net-next v2 01/10] net: wan: Remove unnecessary (void*) conversions Message-ID: <23e98085-8f07-4ee2-8487-8e3b439b69f4@lunn.ch> References: <20230710063933.172926-1-suhui@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710063933.172926-1-suhui@nfschina.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Jul 10, 2023 at 02:39:33PM +0800, Su Hui wrote: > 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; When dealing with existing broken reverse Christmas tree, please don't make it worse with a change. But actually fixing it should be in a different patch. We want patches to be obviously correct. By removing the cast and moving variables around, it is less obvious it is correct, than having two patches. Andrew