Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2158340rwd; Mon, 15 May 2023 08:02:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7rdTl5XJqagN7aN2/56nt7Oxp6UWhxjfUaIYVky1DOm/iyTjCFZcv0s6joWbX5OwCAnMo/ X-Received: by 2002:a9d:7c88:0:b0:6a6:5b7:9a75 with SMTP id q8-20020a9d7c88000000b006a605b79a75mr9910108otn.2.1684162952483; Mon, 15 May 2023 08:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684162952; cv=none; d=google.com; s=arc-20160816; b=xPyPus2aA5UA685epn93DezTWBa9Vb63ji1SHDMOwLE7DP/4iPrOUR5E3kgcWlwRxc PrIAO1XgPqfOm6DmUsRUORsF3yU/yYXCKSw7S5fCYHx0uV70yAiVE43LO52KO1hoE85P /daAj58NyA1kpOoKrWttGO1IIAybCkUKe9QuTF40BKM1UJ9UbQcF4SVt5jfyl1QiYK2+ 8BtmuxOWOMm+aNwDFLDuviMAR+ZHjNR7jf3WOyS/JNKoH532BZrvTjcxNuwD9qOfQgcp vVwqq068pdL74msDLf6zivYd7SSemgOKmXEaSbcHxWxstU26e43kcT7TLJ2owxQ0tYa9 X5JQ== 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=UKdQljelele47fGhlCDtFyRrYOqvsvKHSxZYQmiGNRs=; b=Mgpm3NuPhFbeSe6EmR+73HfjEK4aIX+vN6X0Z/5i2k5bdc7qAqm9/B32qFYmqXmpc0 V4na9oKLIjx4uihcYfHeL31upaqgAMsO2NZTMG2f0OVTOMURCakWc6K+bh+SgkuwqmDk 3hL7f4sS5vPxo3XAycmVG+VkRY/cX1Mrdu891VrYqPPZxgPIaS77Y1pZsYhAPcV+qPCq wqbR1y85fUfZsfaWcbadk4fKCo5fdcrGFlu7OLWNdULgpSMXA+iWunLDH3cyH/2J/5Sq K+oCR/sh95KVJIq04zxZEqaL5ZvBKfh3nntoDDDf0SkL4A+JahVXkPTFAh0TGJibgRVW 59IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hn29fxuN; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q31-20020a056830441f00b006ab2d68dc5asi6137496otv.180.2023.05.15.08.01.59; Mon, 15 May 2023 08:02:32 -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=@linaro.org header.s=google header.b=Hn29fxuN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241290AbjEOO46 (ORCPT + 99 others); Mon, 15 May 2023 10:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238199AbjEOO4w (ORCPT ); Mon, 15 May 2023 10:56:52 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B73DB2128 for ; Mon, 15 May 2023 07:56:28 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f41dceb9d4so97352385e9.1 for ; Mon, 15 May 2023 07:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684162587; x=1686754587; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UKdQljelele47fGhlCDtFyRrYOqvsvKHSxZYQmiGNRs=; b=Hn29fxuNMyby+YmQYnHiOhftbcHGmxehKzHtB7YzQD7v/sceIbhluaRt8wSdlJJJWW rYxh0eyDlDa3kfYLGhU0UbUOBzmTKnmuDJaUeb6gs8Cg3XSI32vksTKtxZ/DPf+Wv/jz 6g7f33Af+mM8iEK5njYrtDiH+fb///gfth7NgjgLVYobaoY6p/ugrq3V+8CUQOLiJ4jm o0ej63/zA/PuxrUudmBd2t5GWqb5iX2lr2pfM36Mm3DYvZXLV+XD6oeihMT07MIw1tct 7ztFaxRSccEK503l2NlgWVizWJ0tgN66uJnr011LOYo/QivoD2AH9G9y2QVT+33V7JP2 /vzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684162587; x=1686754587; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UKdQljelele47fGhlCDtFyRrYOqvsvKHSxZYQmiGNRs=; b=adKhLkSmpKVpBxgQQWP6lEHJVLkswnz6L1kyxGT8ZedvzyE+UWrmSnJmiftVgmnX0j b3UAt8oEFFH097iQToFeSbn8SdekwtUjSBDKeTN59/XalbTjhPMxRqLVBkEUUi/xNfNL al7QGmjKfL151MW9RYCq+RhPVfrhbkNtYNBebZw2HYzwgGZyxj9Iyr+DdKaX4dGlOS0g TXXceu1C4lBAc7lmbG92giluNubuaX4gUA2/CywlXGMi9L0jAGSBKkILU8lbfv/4w8xU e4q6iendzP8QljMofTCWrqSQTZx76bMUY7g2w0teFJlnqx4DqXPQYEhtkkGRDXShQxB8 w55w== X-Gm-Message-State: AC+VfDwmG0xAFuWUAh9OF73LJSdfE2Ro9vmRzsbxRh5gKox0l4Omme7N r9mm4/wNm1XS6mMlL9qrJD+I4g== X-Received: by 2002:a5d:6086:0:b0:306:2671:7cad with SMTP id w6-20020a5d6086000000b0030626717cadmr27241216wrt.55.1684162587152; Mon, 15 May 2023 07:56:27 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id j17-20020a5d6051000000b002e5ff05765esm32745232wrt.73.2023.05.15.07.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 07:56:25 -0700 (PDT) Date: Mon, 15 May 2023 17:56:21 +0300 From: Dan Carpenter To: wuych Cc: dchickles@marvell.com, sburla@marvell.com, fmanlunas@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net-next] net: liquidio: lio_core: Remove unnecessary (void*) conversions Message-ID: <2c8a5e3f-965e-422a-b347-741bcc7d33ce@kili.mountain> References: <20230515084906.61491-1-yunchuan@nfschina.com> <61522ef5-7c7a-4bee-bcf6-6905a3290e76@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61522ef5-7c7a-4bee-bcf6-6905a3290e76@kili.mountain> 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_NONE, SPF_HELO_NONE,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, May 15, 2023 at 12:28:19PM +0300, Dan Carpenter wrote: > On Mon, May 15, 2023 at 04:49:06PM +0800, wuych wrote: > > Pointer variables of void * type do not require type cast. > > > > Signed-off-by: wuych > > --- > > drivers/net/ethernet/cavium/liquidio/lio_core.c | 6 ++---- > > 1 file changed, 2 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c > > index 882b2be06ea0..10d9dab26c92 100644 > > --- a/drivers/net/ethernet/cavium/liquidio/lio_core.c > > +++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c > > @@ -904,8 +904,7 @@ static > > int liquidio_schedule_msix_droq_pkt_handler(struct octeon_droq *droq, u64 ret) > > { > > struct octeon_device *oct = droq->oct_dev; > > - struct octeon_device_priv *oct_priv = > > - (struct octeon_device_priv *)oct->priv; > > + struct octeon_device_priv *oct_priv = oct->priv; > > > > Networking code needs to be in Reverse Christmas Tree order. Longest > lines first. This code wasn't really in Reverse Christmas Tree order > to begine with but now it's more obvious. Oh, duh. This obviously can't be reversed because it depends on the first declaration. Sorry for the noise. regards, dan carpenter