Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34966438rwd; Mon, 10 Jul 2023 00:08:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKQPelCwNnt08z3+ercRmZyh7QgbySRICSPPyz869SNjzn1l05LdnUudgSEqZ0kR7CHBEi X-Received: by 2002:a05:6870:b52b:b0:1b3:dc5b:13c7 with SMTP id v43-20020a056870b52b00b001b3dc5b13c7mr13745198oap.43.1688972933598; Mon, 10 Jul 2023 00:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688972933; cv=none; d=google.com; s=arc-20160816; b=0fnH67D69VdoKoGGRO0Q8H937lVJ0i7xjpi4+soNkqn4GgsbkJtfwbEWk3hUrkwzEB m/OH4CjD5Lill/9wxhyLRjyNnSbRMJ+h+ImydkumSvTaYBX4gRafBiWtYpv11McE7LyS j1fOF8co1u9HHYdGVm/MGN0fDEmW8lKhcFUPFpPRs37QZo1Y7OYXoAkhgKPNwHbYuJSp 3pz4cE4evgBWzSB9BgzcUeP6r85Ss5imMMm8NylB+FCKfyH8gLVga+65N4PKwYyLeS4r hWcTHPHuWD2H5xR7Jls8jQwYNCPGGpLSLyzicDLCQKvSX6vtvRIJ38//i9nGy8XFSf06 QXBA== 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=TmffS3FYptAu8V6uP6+Y3gwp+9XIQo11Uy2k9RshwrY=; fh=z5YeEX/ZdnTKT7n8NTaX9fYvbz6sEr70ShDo6Kryli4=; b=TNK6cWhFX+ZLFdcwXRkUH3tMMIpwvsQEfIr/JI69rVDZ2hpIwn62h35/fpE/E9Bx4D Go4hEQIQfHMiH0RkkBp6mbuOpe4pOfYJANKa/zGD3Yoe2qWCOH8YfqHfiV+slNJmyLqK LgkxZSHN6hfQO/4rXv7syFXEbFti3UHNFCR0PeaQT6sUIzNLNybhCTcDYGjK7btvHQj6 0c1sglP4oNQluI7MTclhODItOPzZ1gwT9ICSrNXUO/UlvFe8Y6/1RyZ/yV7mUVi8z0/+ 1iaUkAYtUbrqZUq8mmbA+4pu4fJXOIAcm0L1867PDf+wlAvaoU1VMgrBPO34U26Zi72w wRSg== 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 b13-20020a17090a550d00b00263492ded2asi6514819pji.94.2023.07.10.00.08.40; Mon, 10 Jul 2023 00:08:53 -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 S230231AbjGJGlQ (ORCPT + 99 others); Mon, 10 Jul 2023 02:41:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231542AbjGJGlN (ORCPT ); Mon, 10 Jul 2023 02:41:13 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id B7FBA187; Sun, 9 Jul 2023 23:41:10 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 495CF602A8713; Mon, 10 Jul 2023 14:41:07 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui 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, wuych Subject: [PATCH net-next v2 06/10] ice: remove unnecessary (void*) conversions Date: Mon, 10 Jul 2023 14:41:05 +0800 Message-Id: <20230710064105.173647-1-suhui@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 From: wuych Pointer variables of void * type do not require type cast. Signed-off-by: wuych --- 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 93979ab18bc1..52af3bd80868 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -6242,7 +6242,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)); @@ -6262,7 +6262,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