Skip to content

Commit

Permalink
ice: remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Yunchuan authored and Jakub Kicinski committed Jul 19, 2023
1 parent 406eb9c commit c59cc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/intel/ice/ice_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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));

Expand Down

0 comments on commit c59cc26

Please sign in to comment.