ice: remove unnecessary (void*) conversions
authorWu Yunchuan <yunchuan@nfschina.com>
Mon, 17 Jul 2023 03:11:54 +0000 (11:11 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Jul 2023 02:00:47 +0000 (19:00 -0700)
No need cast (void*) to (struct ice_ring_container *).

Signed-off-by: Wu Yunchuan <yunchuan@nfschina.com>
Link: https://lore.kernel.org/r/20230717031154.54740-1-yunchuan@nfschina.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_main.c

index 19a5e7f3a075ee3c1a4462b1a826f63c33eb3db4..6d021597506f77c413645beb6774f87346eb8d6d 100644 (file)
@@ -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));