Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: prestera: Use to_delayed_work()

Use to_delayed_work() instead of open-coding it.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20250514064053.2513921-1-nichen@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Chen Ni and committed by
Jakub Kicinski
21c608a8 ee39bae6

+1 -2
+1 -2
drivers/net/ethernet/marvell/prestera/prestera_counter.c
··· 336 336 337 337 static void prestera_counter_stats_work(struct work_struct *work) 338 338 { 339 - struct delayed_work *dl_work = 340 - container_of(work, struct delayed_work, work); 339 + struct delayed_work *dl_work = to_delayed_work(work); 341 340 struct prestera_counter *counter = 342 341 container_of(dl_work, struct prestera_counter, stats_dw); 343 342 struct prestera_counter_block *block;