Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5129530rwp; Sun, 16 Jul 2023 20:37:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTvaCCh2cxBJ+uTYngzVfWKqTpWyyoFKJFzcSP502XLXvFb95Kvbx+thgFPR1bATGo3iFc X-Received: by 2002:a05:6a00:2d06:b0:679:a1f1:a5f8 with SMTP id fa6-20020a056a002d0600b00679a1f1a5f8mr6722129pfb.3.1689565075596; Sun, 16 Jul 2023 20:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689565075; cv=none; d=google.com; s=arc-20160816; b=yQegqAw7eOAC1GtUwxhOwAcgerLeoWzkhj26xfQjClB0VWnmOmCeeNuOxcwiMnaBZq 5yTyX/T64L2oJCxJlTMJ0a5kyjmsvHypm8Iuu16H5bNieYA1kAfwnTVTlROwsTWjEgC4 LEylSWMC1h6/3Slj/xA4IPW7KTA6OjOdGbX6VyzICjNDdY4cho79Eg8nBxKrBXsNp6q/ uUOuMtDhIiaLX+BQ8bGE8ampcp0emF0VC3UfdrQr21jdmBol2TQFMVLowzNeWBlRSmeq yFWTgq6GwA1JKx4OCRzB8qfQcECA++ebRVNyAi4UEMDEcsBGF8QUIlDb6rGzKIRFa3OB ZazA== 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=sPat4Sg9h5Y5MYEnF7ZEVLgkQjK0luHnljbj2kLlJAs=; fh=wxWlHWaW8ZatrzBenD1DqBFeAuCcfo9uLzkyMKUbL9Y=; b=E40H3oJAIvnYlwM6hlbvFJFLOekr1U1p6vWMklT5dJ92s/tixK6F5QQ7BRUsMo51aZ rMpAnxeQPSjlXTudMuvWn2s1AnnDGhrLToG97wnU3A4yK+cJQZV2aOZaOz4ClQwjBTJV Yk2AECkKt6/I6DSqt1GYRmlLZHEbn6WVEvz9qjScbNVsyoF0EPdAxC+oZOxfqA+AU8B2 39MX7sQimqjbrqFfMgEnr3giel9dGqTYCDDMtkEuQtxpbBAFMM3LW9t2dWzdvs4h+ZBa X+7RCMu4GvyxGzHs361RHCxRGYKtsx7XaRoDmj+KiY8tABo7v52DyiRZQ6QKOyAEjBF3 aTBQ== 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 c19-20020a056a000ad300b0066d93ab678asi11241679pfl.16.2023.07.16.20.37.42; Sun, 16 Jul 2023 20:37:55 -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 S231270AbjGQDMb (ORCPT + 99 others); Sun, 16 Jul 2023 23:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbjGQDME (ORCPT ); Sun, 16 Jul 2023 23:12:04 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 5AC8C10FB; Sun, 16 Jul 2023 20:11:58 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 7E30B6012605B; Mon, 17 Jul 2023 11:11:55 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Wu Yunchuan To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Wu Yunchuan Subject: [PATCH net-next v3 5/9] ice: remove unnecessary (void*) conversions Date: Mon, 17 Jul 2023 11:11:54 +0800 Message-Id: <20230717031154.54740-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 ice_ring_container *). Signed-off-by: Wu Yunchuan --- drivers/net/ethernet/intel/ice/ice_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index 19a5e7f3a075..6d021597506f 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -6249,7 +6249,7 @@ static void ice_tx_dim_work(struct work_struct *work) u16 itr; dim = container_of(work, struct dim, work); - rc = (struct ice_ring_container *)dim->priv; + rc = dim->priv; WARN_ON(dim->profile_ix >= ARRAY_SIZE(tx_profile)); @@ -6269,7 +6269,7 @@ static void ice_rx_dim_work(struct work_struct *work) u16 itr; dim = container_of(work, struct dim, work); - rc = (struct ice_ring_container *)dim->priv; + rc = dim->priv; WARN_ON(dim->profile_ix >= ARRAY_SIZE(rx_profile)); -- 2.30.2