Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9683302rwr; Thu, 11 May 2023 20:00:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iT0bETCMh7/wMr7dRM5lHdeCEyYSq0DQTVXYPBZ1a9tf7AsU7eNUqqs5pchi/n+TiTiqQ X-Received: by 2002:a17:90a:1508:b0:24e:30c:adea with SMTP id l8-20020a17090a150800b0024e030cadeamr24515190pja.18.1683860425457; Thu, 11 May 2023 20:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683860425; cv=none; d=google.com; s=arc-20160816; b=Op7DehexzX94x+scesoaEWyP8fRUjq3mMt9pOzJ3xOEB48YhHPJTCOyrfD7vNioRel QuQ8iQSBXe9Ty0A9S56hYubM2AIXyxMSAXRw01dijUZtWUY9BQiCdysIRcD+TAqscSaJ +wQMdf8b8K5jBHL4I86iwrEufxfEELn4prOMEyYaYy5Fm/GSYuTPklUQrrh5zfL/vIaU vae1YsvYl8LRnI8b9Z1Cjxhd+ZeCMskjiHelZk+nTBzZS5RZ8klFu1gbm6V5HO3g+hhp WcfRXcDW/102PD34mRI+USKMQEgbBfZr1eQ1O9gr8kBpwFBLaoeBgPtyHuwny8xnTKm/ Uc4g== 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=krxQaOKUW7mpbJ7p7NiLCJjnIKP6pJMgQj5CbGIrx84=; b=CXr5xrWg4xdZ8rCdXGIgk6YM3xxsFEs+Ktxnij0ITG0XjWd5JjZ3v8CR+G0Ah5C4Wh 1FdTLNtezX7sjx+xgg3tW/aZgi8S1znR7bflS8Zjjl1GcVlNQDcGxlrjsML3oY2U8qHG gCtMSDQcRGXhbTsqXhtN59t54CSAwql8qP00Mt/LaHNcYlD8vrNfYDGV8/JCLAaFof16 4+wHG9Qo38cOj1M0DA1pGH/5nb91MfSau7JOSXdr/UY5la9SuCl/XcJObjhkdmIUsHkI vDjOdhNoaUCKBe4OUpieuYBKa7Bbbp9a8chpY1qY5Jd0SOYltCylta05T+1fnMa/Z5JW dMFg== 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 p18-20020a17090ad31200b00246b1a9630csi21722557pju.130.2023.05.11.20.00.13; Thu, 11 May 2023 20:00:25 -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 S239739AbjELCoM (ORCPT + 99 others); Thu, 11 May 2023 22:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233568AbjELCoL (ORCPT ); Thu, 11 May 2023 22:44:11 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id CC2CF55A2; Thu, 11 May 2023 19:44:09 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id B0960180028342; Fri, 12 May 2023 10:44:05 +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, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH net-next] net: liquidio: lio_main: Remove unnecessary (void*) conversions Date: Fri, 12 May 2023 10:44:03 +0800 Message-Id: <20230512024403.691018-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_main.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index 9bd1d2d7027d..100daadbea2a 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c @@ -191,8 +191,7 @@ static void octeon_droq_bh(struct tasklet_struct *t) 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 = 100, pkt_cnt = 0, pending_pkts = 0; int i; @@ -950,8 +949,7 @@ static void octeon_destroy_resources(struct octeon_device *oct) { int i, refcount; struct msix_entry *msix_entries; - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)oct->priv; + struct octeon_device_priv *oct_priv = oct->priv; struct handshake *hs; @@ -1211,8 +1209,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; @@ -1774,8 +1771,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; @@ -1855,8 +1851,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; @@ -4057,8 +4052,7 @@ static int octeon_device_init(struct octeon_device *octeon_dev) char bootcmd[] = "\n"; char *dbg_enb = NULL; enum lio_fw_state fw_state; - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)octeon_dev->priv; + struct octeon_device_priv *oct_priv = octeon_dev->priv; atomic_set(&octeon_dev->status, OCT_DEV_BEGIN_STATE); /* Enable access to the octeon device and make its DMA capability -- 2.30.2