Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18565076rwd; Tue, 27 Jun 2023 20:02:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50Y8yVDwoekYFdlW8av9UZRAF7ww38K2nb1T4yguG+SKGSkLGdPeptqSKvDzsPclKL+BIE X-Received: by 2002:a05:6512:3b27:b0:4fb:8441:be06 with SMTP id f39-20020a0565123b2700b004fb8441be06mr3125833lfv.18.1687921342520; Tue, 27 Jun 2023 20:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687921342; cv=none; d=google.com; s=arc-20160816; b=PhntgKKngKmo3gQnVngm3QYf1hgktIN1wl1stDwbNymlD1PKmrq/bdxUBKPHyB83aR MWYFfXfNAeDbkq3vgoT2I9dSSca79WdCn3X4FaH6u6JIn02pfokbQpvvfVmicW3lyV76 lEHKi8h4d+bZWo9/F43TPcLGetjxt91tv9tj/jtXr0rVx5LBebo4QTrzNPiemvlVCMbZ idr0kCinHO1qsj1+Dk6+PePeJksWF3kAh7WfsaSdfNLkp39HGB7iFkIn/ImXGUF2nnZU 9hU0VTkIvkq7uSUVGFENz3hnGkCh5wx+yPtAwJKt931gz4+wMRC5UTMIEDuqQ9ZruC3K 3fOQ== 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=i4C+BzRb95sxUeuoYyHCDuffuCltWvXbZxlMpfCmIEY=; fh=X/ZaM99Qs05jXabnms60OxKs1Q7MnQ1iuRfLJ2Tw5gA=; b=cpj9cl9Fsd4ZZHPbvQZAjo4/zdOsAmBTd0ee1ilHALg8QoIWBL9uv/EplSfuTbmS2f 6vFTLWiY1hAm+mXGM6ADHe6AAKlHLtjKMXenVUOTtMCbRpMHm0yeA4Gfly2aSbX3kQoG gEhkrONOzuEi/bidpdXNE+qHtV8W9bZH+H3LEBTmoWYuzvZBoSDSNj2w+K6jxBS6YPT8 KTU6WIhTLhHRG4pLaG5gGVwUsyLOw37NAYUDzEGiddUzvWL1oDIWqQ3pmWUDVXkV4wA0 Bn0wRV5xz1jhZXMQSqPrJiPPteFcyPpDaNO3dSn6nLumUvhsV4VLQQoBaUyA8w0Q5oIn MQWQ== 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 u26-20020aa7d0da000000b0051beb5e6d74si4394163edo.229.2023.06.27.20.01.57; Tue, 27 Jun 2023 20:02:22 -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 S231485AbjF1Cpo (ORCPT + 99 others); Tue, 27 Jun 2023 22:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231416AbjF1CpZ (ORCPT ); Tue, 27 Jun 2023 22:45:25 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id CF20D3A81; Tue, 27 Jun 2023 19:45:14 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3A90A604D9369; Wed, 28 Jun 2023 10:45:12 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych 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 07/10] net: hns3: remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:45:10 +0800 Message-Id: <20230628024510.1440567-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,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 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; -- 2.30.2