Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6826254rwr; Tue, 9 May 2023 23:09:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jKydhtSx7fMAskRIurylITgivYSK8fXg56fq2y0cvuOXAS2sIbHTp6T7gphr+Gog/yXO3 X-Received: by 2002:a05:6a21:3386:b0:101:241d:55fe with SMTP id yy6-20020a056a21338600b00101241d55femr7992340pzb.45.1683698941024; Tue, 09 May 2023 23:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683698941; cv=none; d=google.com; s=arc-20160816; b=0uUlhBM7HbzLElFhOml5IgeiOLcmXw//pi9c66uoDoMejp79r/UFfZYnc7kdbPEvVq Mejhe9E+Umlr+K2DY+fsR0BWtyqNF66Jm/wvjusEf8KjS7ryA0K15N3oc63VKvV7iuHj 4bkdaItcrFOPrb3ERJUiC6J2PizWgls2vG9TdM2XSSBjhjCt8GbUfX/l2/MMHABRMX9F emjhV3RiiyQDdEmIgfMKlhfRoHyf71StCXU2A5j20uTVVBIwIAwKVbr2iIT+FRXrH+0J 0Ityu410Wwg+2TEGBAFn4S9/JjiEIVKCio7hdmNBzick3JfM2BbXW1ihLDgXIv+I4req Th1w== 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=21ufwStXK5I53vOW0qIEOwj/wjWXqs6vxXE9PYrBkAQ=; b=GRp6xsVtVvJgtvoLAkpRF7rN0LLmeDo4VJYVjrTHhFzPkjW4TR4if9j8qu/q2RS2IY ujQ4XGqRijTEzbbkkv45Y1NtfGFN7S/KBThsONeH4UFAKlLbLPWEycxCn3fDMtvEzq7U Kj27pIFIpoq8BZBHOiTXsCKtGy9tEcyX9m8o5GFN1zfSSex/dc1U3TyZhDDoDG5lQQgW M62ETTPY9pquSAoJdyH9++rdJyxteQa4RsACLRkLwEfRih3qyzEGhYUYH1a5N6VFXtpy rSNWZ8Wdo8+yUdOGvnf5WH3ch4I2iQSNJlmRo0HGbn3YD7j84Ya4gshczb7oSur0vmAq Ja7A== 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 w189-20020a6382c6000000b005186b2f7b2csi3358785pgd.236.2023.05.09.23.08.46; Tue, 09 May 2023 23:09:01 -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 S236016AbjEJGIK (ORCPT + 99 others); Wed, 10 May 2023 02:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236137AbjEJGHo (ORCPT ); Wed, 10 May 2023 02:07:44 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 21C022715; Tue, 9 May 2023 23:07:14 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 8EFCA1800C81C0; Wed, 10 May 2023 14:06:50 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: dchickles@marvell.com, sburla@marvell.com, fmanlunas@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, wuych Subject: [PATCH net-next] net: liquidio: lio_vf_main: Remove unnecessary (void*) conversions Date: Wed, 10 May 2023 14:06:49 +0800 Message-Id: <20230510060649.210238-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 --- .../net/ethernet/cavium/liquidio/lio_vf_main.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c b/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c index e2921aec3da0..62c2eadc33e3 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c @@ -72,8 +72,7 @@ static int liquidio_stop(struct net_device *netdev); static int lio_wait_for_oq_pkts(struct octeon_device *oct) { - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)oct->priv; + struct octeon_device_priv *oct_priv = oct->priv; int retry = MAX_IO_PENDING_PKT_COUNT; int pkt_cnt = 0, pending_pkts; int i; @@ -442,8 +441,7 @@ static void octeon_pci_flr(struct octeon_device *oct) */ static void octeon_destroy_resources(struct octeon_device *oct) { - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)oct->priv; + struct octeon_device_priv *oct_priv = oct->priv; struct msix_entry *msix_entries; int i; @@ -659,8 +657,7 @@ static int send_rx_ctrl_cmd(struct lio *lio, int start_stop) static void liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) { struct net_device *netdev = oct->props[ifidx].netdev; - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)oct->priv; + struct octeon_device_priv *oct_priv = oct->priv; struct napi_struct *napi, *n; struct lio *lio; @@ -909,8 +906,7 @@ static int liquidio_open(struct net_device *netdev) { struct lio *lio = GET_LIO(netdev); struct octeon_device *oct = lio->oct_dev; - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)oct->priv; + struct octeon_device_priv *oct_priv = oct->priv; struct napi_struct *napi, *n; int ret = 0; @@ -956,8 +952,7 @@ static int liquidio_stop(struct net_device *netdev) { struct lio *lio = GET_LIO(netdev); struct octeon_device *oct = lio->oct_dev; - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)oct->priv; + struct octeon_device_priv *oct_priv = oct->priv; struct napi_struct *napi, *n; int ret = 0; -- 2.30.2