mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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:
parent
406eb9cf6f
commit
c59cc2679a
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user