Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5117341rwp; Sun, 16 Jul 2023 20:14:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDCEV0KvkzP/diZH6esZQS8NrDEhvKc09+oIg7txgj4BhiuZmkMK+s6PpAbcnQVrh2Gh2w X-Received: by 2002:a05:6402:254f:b0:514:a566:104a with SMTP id l15-20020a056402254f00b00514a566104amr5827976edb.3.1689563668599; Sun, 16 Jul 2023 20:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689563668; cv=none; d=google.com; s=arc-20160816; b=rkgWfYr4spE8BdI8EXFJfAws3lB5uFpfWKE9SMa9gzgOyFUt1zbNnn01sqfhrR6vNv P7UPCBU3LatkfSrmu6EfK6V4SgRQU+KxNvBIi7bKGrE5AvkazWas1LJ9w0OEC7QDidhi 1fbExKuwwf0hi5mVoteaDU43ZoJutt9CU7m8W6mMw8FUAoTvGrXcHtHNpGcmpkr2Ig0C z0IqXslq4ONUj5AD8/vHKRcnGEXqKKmbS4w50zcHj/kJHF9h3/mxGvDK0wnGDIeW08tm xNzMRaEstB2RIZfIUHnnrrEkbUYMLEl2m+SwX77oQcrxxvK1H44MssxlJRfddKdoxmE/ TDbA== 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=RaIK0xTXN01mDByD3FefVu8KBJMNYP8db9VxPrUEzvo=; fh=Di1RypyzTw859Myl4rb6Qvt0oYks6wzavwOM4El5CCk=; b=tEXnPmx8oB2HcCruO8GjIU8EPvYTEvVVKyGgScnZiNqV4y5n2jHGXTTESgPWRckR3U ncxfPkcPr4mnR7Ene0SXazrRjLzZZDh5mYqUZ7SsA3Xs8acj5EGdjOUPFiTtLcJxs7c5 2gmNELZmQ6K0lbW7L11dC9dwdSu+fwTMG9UNUsCck4uld5qcJNIZ+a2Djzk97jMByiWw cAh2hbvssHUkSk2EIbL7MX3YEKE6gmMJRDLKGONoFJnW45D54U17v6cbbDCJg6KdmJlm 9K7S2UOAJVBUzakbrYIRrXL7SXOCbNbACMOsM9n1SzMj9gECGYTrhVAOulJmLkcjwSO5 UaQw== 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 g23-20020a056402181700b005187aee0b5esi6755949edy.396.2023.07.16.20.14.04; Sun, 16 Jul 2023 20:14:28 -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 S231325AbjGQDLx (ORCPT + 99 others); Sun, 16 Jul 2023 23:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231285AbjGQDLi (ORCPT ); Sun, 16 Jul 2023 23:11:38 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id BA4DDE76; Sun, 16 Jul 2023 20:11:33 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 628E76012605B; Mon, 17 Jul 2023 11:11:30 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan 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, Wu Yunchuan , Hao Lan Subject: [PATCH net-next v3 3/9] net: hns3: remove unnecessary (void*) conversions. Date: Mon, 17 Jul 2023 11:11:28 +0800 Message-Id: <20230717031128.54557-1-yunchuan@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, RCVD_IN_DNSWL_BLOCKED,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 No need cast (void*) to (struct hns3_nic_priv *). Signed-off-by: Wu Yunchuan Reviewed-by: Hao Lan --- 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