Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18873985rwd; Wed, 28 Jun 2023 01:43:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5AfcIDALeRZSCzE4GoP/O/okF0Du4g37qXyH5mnFcE3Q+Fobb+yEH90y+rpkUAeOJHGURp X-Received: by 2002:a17:907:9485:b0:988:6bd2:b0bd with SMTP id dm5-20020a170907948500b009886bd2b0bdmr26639486ejc.7.1687941818077; Wed, 28 Jun 2023 01:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687941818; cv=none; d=google.com; s=arc-20160816; b=QWpmdbvNPQ/Mhsgn271ObV2xRe9spEd8/WMlhVPmwK6KkXroKr3zpll8iwbIRM+Ptf tOb2tQkLJbiJ7czCedzyalOvD5WvmaKFtWljFO+elcPHHMnI7Bxld4tAB4KUlZvIFjFI w2U+5sVdDCwUT+bR2BCPhxL77f0XiFFdJPeuYtTE/JphZnKYloFnzPvNnUEQrIIukf/i h/j/nvppYrC6KBpOnDODwH2oPdR7qMV9kUWzxgbUxeUgYYo8xHoPvY3S3GmLAPwmfSiD GcBJD37clqLkwUxab7zuk7iZ8iTyg5TJy4xhcdrxosqjRzIE/stHRSerMEQ09KZVOpHx rBkQ== 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=EOjofIZhyTSjOjnoDUSXY01aKNcBbbl2V5kUB9yA2t8=; fh=sZ4jjxBxlX8YNuOvFB8e4/ontvOKbmgBSML/bYo/xDs=; b=PoH8zwBJFJwIzwwTIxlNsOPnJAqQeaNV63WeUy4M91EcYE4uN8yku4n4jANfZ1g/K4 /rSyeZTGFEQKt+/URs7XJxcrM51BIOePYx1Epjx+3OHXddd+JjWtrWi5mkTQhfjJOyuI z9dZ2K/56g8GFAamsUShzgjZaxNZW5hPvXkNfy3nuVhiW+hXZejt+Rdo4K9jBOtrID0C avhcghfSQ+hxUHQBKURlLkYBjzTGgHf03bkB26Xxaipg4tz+tggxG0DzHCwjxR4xO0ew Q+Umta9n/Q+J/TA/6b6WvZPwpINUXEiDR6CKiINIYFLds8KCEd4GI1sO8hKuXOk6YSa2 YWDg== 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 q17-20020a170906b29100b009770c6abd0fsi5558296ejz.898.2023.06.28.01.43.14; Wed, 28 Jun 2023 01:43:38 -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 S233855AbjF1IMN (ORCPT + 99 others); Wed, 28 Jun 2023 04:12:13 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:16304 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233829AbjF1IKF (ORCPT ); Wed, 28 Jun 2023 04:10:05 -0400 Received: from dggpemm500005.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4QrY3g602pzLn30; Wed, 28 Jun 2023 15:23:59 +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; Wed, 28 Jun 2023 15:26:04 +0800 Subject: Re: [PATCH net-next 07/10] net: hns3: remove unnecessary (void*) conversions To: wuych , , , , , , References: <20230628024510.1440567-1-yunchuan@nfschina.com> CC: , , From: Hao Lan Message-ID: <408a4d7b-5dbf-fa3b-357d-1cd736f92e83@huawei.com> Date: Wed, 28 Jun 2023 15:26:04 +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: <20230628024510.1440567-1-yunchuan@nfschina.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.37] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500005.china.huawei.com (7.185.36.74) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/6/28 10:45, wuych wrote: > 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 51d1278b18f6..1df941ef86e3 100644 > --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c > +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c > @@ -570,7 +570,7 @@ 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 hns3_nic_priv *nic_priv = handle->priv; > struct hnae3_knic_private_info *kinfo = &handle->kinfo; > struct hns3_enet_ring *ring; > u8 *stat; > Hi wuych, Thank you for your patch. nit: the local variable declarations could be reverse xmas tree longest line to shortest line. One option being: 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; and elsewhere in other patchs. By the way, the net-next branch is currently closed, and you need to wait for the merge window to open before merging patches. Reviewed-by: Hao Lan Yours, Hao Lan