Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36178025rwd; Mon, 10 Jul 2023 19:38:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAsTpRLQfnQl5a96iVaRHn3xwyV0VSbgTRBo+sbQTF+sEL4kOaYaTxZXG1Yi1LXWlHMmKc X-Received: by 2002:a05:6358:c03:b0:135:5934:2bba with SMTP id f3-20020a0563580c0300b0013559342bbamr5698017rwj.8.1689043129451; Mon, 10 Jul 2023 19:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689043129; cv=none; d=google.com; s=arc-20160816; b=zj0UvUvsI8xfFlQFiTnz0xQkraCOVkYDuD+fMNUVebtK38Nd7Iy/G65XwOpkS3qGs6 fqJeEp2llHFEDKBbkU/lBp6HRZ/S/EXr4/oY+eTu/Q2ZVw02smYLzVdSMiabKZ7rfcWg anN4NZSbwfNijJr2KzT11t19ViG3sULhkolR8yRCbcqJpz62URqG5u37gVVZIDZdgnJT 0SycH9/lOlqcwX36ypObdKk2EuGbkt9I/wSGeY7FVQZtGGJCk/UMrDOfYPnRiXhnUR7j uD+FbCFYsZYt/ZQtTGtdNRd228RiCLOerIusm1TKYh6wsniorBI53g6F8RmgJGoWrTZn qQmA== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=ykOCaGBGijD5s7cWDBDXOFor1T0T7TvShzhHZ1Nt0XU=; fh=2APDYdCXGqWSxjgwZebeh3tTtRNFUVPLvukbHFjcG2A=; b=FHK4XZlzk9rJQ0wLKwnkV0lvi5aeHyTHSHghC+1q5Y07SblvnhOEIWfAKZM740y0OO p22uDmAh+hAmzjwoPWBBp1zqboitblc2Olsx0D3ui9KRljQrowKtR6ekVXth3mw7ZvW1 jbMDePwxepkwdLldJf2BhTrFnL24QdJPpsBl4TgjbVtxrvNIjQMEA2vSapywolYM8EkU sWn09BC6L0RhrmJG3hybGiQrCv9nKgHt+yTMYUvBWpoJeIlLRbrgyQVH9gGU+3CdwZJ8 L/6YJWqUz8/dGa4DKiYG6oxv6mhABeClA7/shEPqxRRQ6euCPqIfi4NzAXZQ5UntACbs SVGw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a656915000000b005533750837csi598331pgq.681.2023.07.10.19.38.37; Mon, 10 Jul 2023 19:38:49 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231578AbjGKCQt (ORCPT + 99 others); Mon, 10 Jul 2023 22:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbjGKCQs (ORCPT ); Mon, 10 Jul 2023 22:16:48 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30DBAFE; Mon, 10 Jul 2023 19:16:47 -0700 (PDT) Received: from dggpemm500005.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R0PcW2jLzzqSHg; Tue, 11 Jul 2023 10:16:11 +0800 (CST) Received: from [10.67.102.37] (10.67.102.37) by dggpemm500005.china.huawei.com (7.185.36.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 11 Jul 2023 10:16:44 +0800 Subject: Re: [PATCH net-next v2 04/10] net: hns3: remove unnecessary (void*) conversions To: Su Hui , , , , , , References: <20230710064040.173397-1-suhui@nfschina.com> CC: , , , wuych From: Hao Lan Message-ID: <0663169a-a8f4-daa4-0974-72d10f02b4d7@huawei.com> Date: Tue, 11 Jul 2023 10:16:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20230710064040.173397-1-suhui@nfschina.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.37] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500005.china.huawei.com (7.185.36.74) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 2023/7/10 14:40, Su Hui wrote: > From: wuych > > Pointer variables of void * type do not require type cast. > > Signed-off-by: wuych > --- > drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c > index 407d30ee55d2..36858a72d771 100644 > --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c > +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c > @@ -569,8 +569,8 @@ static void hns3_get_strings(struct net_device *netdev, u32 stringset, u8 *data) > > static u64 *hns3_get_stats_tqps(struct hnae3_handle *handle, u64 *data) > { > - struct hns3_nic_priv *nic_priv = (struct hns3_nic_priv *)handle->priv; > struct hnae3_knic_private_info *kinfo = &handle->kinfo; > + struct hns3_nic_priv *nic_priv = handle->priv; > struct hns3_enet_ring *ring; > u8 *stat; > int i, j; > Reviewed-by: Hao Lan