ice: remove unnecessary (void*) conversions

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>
This commit is contained in:
Wu Yunchuan
2023-07-17 11:11:54 +08:00
committed by Jakub Kicinski
parent 406eb9cf6f
commit c59cc2679a

View 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));