Commit c59cc267 authored by Wu Yunchuan's avatar Wu Yunchuan Committed by Jakub Kicinski

ice: remove unnecessary (void*) conversions

No need cast (void*) to (struct ice_ring_container *).
Signed-off-by: default avatarWu Yunchuan <yunchuan@nfschina.com>
Link: https://lore.kernel.org/r/20230717031154.54740-1-yunchuan@nfschina.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 406eb9cf
...@@ -6249,7 +6249,7 @@ static void ice_tx_dim_work(struct work_struct *work) ...@@ -6249,7 +6249,7 @@ static void ice_tx_dim_work(struct work_struct *work)
u16 itr; u16 itr;
dim = container_of(work, struct dim, work); 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)); WARN_ON(dim->profile_ix >= ARRAY_SIZE(tx_profile));
...@@ -6269,7 +6269,7 @@ static void ice_rx_dim_work(struct work_struct *work) ...@@ -6269,7 +6269,7 @@ static void ice_rx_dim_work(struct work_struct *work)
u16 itr; u16 itr;
dim = container_of(work, struct dim, work); 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)); WARN_ON(dim->profile_ix >= ARRAY_SIZE(rx_profile));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment