Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1735369rwd; Mon, 15 May 2023 02:11:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vm0w6ZlHsEHIRaZCFddHSR3sO6K/ac7XThlTsuB5SMKMTodVHxJ0o1TkU/okF/XA7XlPP X-Received: by 2002:a17:902:db06:b0:1ac:712d:2049 with SMTP id m6-20020a170902db0600b001ac712d2049mr35133986plx.6.1684141912202; Mon, 15 May 2023 02:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684141912; cv=none; d=google.com; s=arc-20160816; b=hP+mUofDrf0Kjm/0yIG1WqNvpLlyx/aYfn61yso4E4dFrAVCDZSdZAbME9PGdqLrI2 IXy/GDma8aQ/Xu6QqvJFoIXdywgBcp9efYNbmDe+etN8TY0K0Onrp0M4DbCr8ybyXMJB 5fUChkOlKciEm7WJjwQdIUcbWolYRNE95AHeWcX03uWd2J4+d5DJq31jUOQ6g0FcuJjf ALt2Twm/BU7r0N5kDxOTn9QkhtLQwReGozCggGl6kdwUE5NUhfUWcg26kGXvWg5O8Tfw Y52VKPr2ZPenqtJMonlxFMgiC44ggZx9qJI5ChWs+Nv7GyMPGHlU2w9xtzC0it3oWfbo w/Fw== 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=KUnPl4O6ag7/FgA/zB1ViJMLPvT58Euv7FjvptqdtW0=; b=SFZUVhmDdnEkvnBe90z7saNXHjXcN0k1ncKr/4nhfyF20C8LYZ4k6YRfTdDzDFxKjd cL3JBK3b9hh5MKOq1l8PjYw4VRmHQRhzJE5fDncdCqM3GcyOExdn7F9FYkIptnZTBHmU /K4IRjXabHoyqbe56bQfiTXlrJsQHlzWVmDzQNSDSa+yqLEuSjt1sKBWfGYtyBxruKvH pYftwqHVhhaWHM+6KW8bPx8rmco8IjZP22+Kl2ulinrtBkoCdVgutRKkxscMqSW6EWV6 RC4aLLl8Q2o7o4rQdIn/qGYCH/k45QJKuBZADXlFIX5XTnLuGdVS+2GYD/fLNgDOjSoT BObg== 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 x1-20020a170902b40100b001a63af5f8d8si15126321plr.4.2023.05.15.02.11.39; Mon, 15 May 2023 02:11:51 -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 S229535AbjEOItz (ORCPT + 99 others); Mon, 15 May 2023 04:49:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238345AbjEOIte (ORCPT ); Mon, 15 May 2023 04:49:34 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id D0C941BC6; Mon, 15 May 2023 01:49:20 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 3986A18011BDB5; Mon, 15 May 2023 16:49:08 +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_core: Remove unnecessary (void*) conversions Date: Mon, 15 May 2023 16:49:06 +0800 Message-Id: <20230515084906.61491-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/cavium/liquidio/lio_core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c index 882b2be06ea0..10d9dab26c92 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_core.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c @@ -904,8 +904,7 @@ static int liquidio_schedule_msix_droq_pkt_handler(struct octeon_droq *droq, u64 ret) { struct octeon_device *oct = droq->oct_dev; - struct octeon_device_priv *oct_priv = - (struct octeon_device_priv *)oct->priv; + struct octeon_device_priv *oct_priv = oct->priv; if (droq->ops.poll_mode) { droq->ops.napi_fn(droq); @@ -947,8 +946,7 @@ liquidio_msix_intr_handler(int __maybe_unused irq, void *dev) */ static void liquidio_schedule_droq_pkt_handlers(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 octeon_droq *droq; u64 oq_no; -- 2.30.2