Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34982731rwd; Mon, 10 Jul 2023 00:25:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFPpNgURaELKGRpOdDZ11vuc+bQUWt41m+WDgbSegmcQhQYJWlS0s5tqb5M07CpJdKHsQZl X-Received: by 2002:ac8:5942:0:b0:3fd:eb04:3464 with SMTP id 2-20020ac85942000000b003fdeb043464mr13398587qtz.63.1688973931917; Mon, 10 Jul 2023 00:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688973931; cv=none; d=google.com; s=arc-20160816; b=pAGRC+MDdGcwI3kPm+n10/Xc0oPQlhCex4LRVrn6R+UNg6pK/IVyeaN4T7rDXZrrOU P2zBrZd3a97QmdwG8enM98JuObsOaIS8CszumgwLXx9HRbSLmuWUcmXUJxXCo3qqU1Wl UnCBLUkx9CsGLgBUucf7t3fPVQpc3Lv6veXww6Ge85jtgq0RHB/AHPBnWzHJLMd4wpPI bpTjYDCoVIP8I9tKw+W0eUfjC1u2/jY3xXDAJ1bKqLxNQs1xdnMVGqmGi2ubgV+F6PxG nsU/HiMEhAnfnhuc8LKrA6G0kKkrd224DVGR6z8otlyuWnLVm61T+1zh98m9Fzih+ymy oQqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=diaG9PbE6J4pOtjVOj0NGmmzZwQfEJ4HpszdcGJe2Po=; fh=SNZyoixxNnY4FasXB3vAHq8nyF5XlG809Wp/Jb//6yg=; b=wQR2Eb1ELP4DR6tdHBwyGxFHess4tV90/POdbViutuet5xebEWcr8oL9tkDBIJJggt mG2MQ3/1OlrSEH0AKDgrlrv7PWd9/y7uwF0IldWdhRCl869eTSnGo6lZ3OLVNi5czw2J tABxm0dsQD6z1VFsLXz8TjpLj2/g1ESH8jy8VL7wiWMcKko41V1TTkHPoct4wg+Jote/ jl0CzE0p42P6eArcDM4HYUcQCbPmm8COlEJQLZjzJppORvyhDFQ2sXl/w4c0henfXOK4 oFdEADBp84UFKOV9uTfx57+QqZkI/CFEavSdKxbU3Q6O2zcCfzAL6lRJkzp+sbKlyLhz sioA== 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 n8-20020a17090ade8800b0025be125bda9si6715245pjv.38.2023.07.10.00.25.19; Mon, 10 Jul 2023 00:25:31 -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 S231356AbjGJGkz (ORCPT + 99 others); Mon, 10 Jul 2023 02:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbjGJGky (ORCPT ); Mon, 10 Jul 2023 02:40:54 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id AA38B130; Sun, 9 Jul 2023 23:40:52 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 93B20602B2DC6; Mon, 10 Jul 2023 14:40:43 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH net-next v2 04/10] net: hns3: remove unnecessary (void*) conversions Date: Mon, 10 Jul 2023 14:40:40 +0800 Message-Id: <20230710064040.173397-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 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 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; -- 2.30.2