aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Ni <[email protected]>2025-05-14 06:40:53 +0000
committerJakub Kicinski <[email protected]>2025-05-15 14:41:58 +0000
commit21c608a88f4fdd55180a228ca297206ef588847c (patch)
tree5abf68694f08424d0cf507ae231b3aac33499960
parentnet/mlx5: Use to_delayed_work() (diff)
downloadkernel-21c608a88f4fdd55180a228ca297206ef588847c.tar.gz
kernel-21c608a88f4fdd55180a228ca297206ef588847c.zip
net: prestera: Use to_delayed_work()
Use to_delayed_work() instead of open-coding it. Signed-off-by: Chen Ni <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--drivers/net/ethernet/marvell/prestera/prestera_counter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/prestera/prestera_counter.c b/drivers/net/ethernet/marvell/prestera/prestera_counter.c
index 4cd53a2dae46..634f4543c1d7 100644
--- a/drivers/net/ethernet/marvell/prestera/prestera_counter.c
+++ b/drivers/net/ethernet/marvell/prestera/prestera_counter.c
@@ -336,8 +336,7 @@ prestera_counter_block_get_by_idx(struct prestera_counter *counter, u32 idx)
static void prestera_counter_stats_work(struct work_struct *work)
{
- struct delayed_work *dl_work =
- container_of(work, struct delayed_work, work);
+ struct delayed_work *dl_work = to_delayed_work(work);
struct prestera_counter *counter =
container_of(dl_work, struct prestera_counter, stats_dw);
struct prestera_counter_block *block;