* [PATCH net-next] nfc: netlink: use &w->w in nfc_genl_rcv_nl_event
@ 2021-01-15 4:14 Geliang Tang
2021-01-16 4:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2021-01-15 4:14 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski; +Cc: Geliang Tang, netdev, linux-kernel
Use the struct member w of the struct urelease_work directly instead of
casting it.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
net/nfc/netlink.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c
index 573b38ad2f8e..640906359c22 100644
--- a/net/nfc/netlink.c
+++ b/net/nfc/netlink.c
@@ -1819,9 +1819,9 @@ static int nfc_genl_rcv_nl_event(struct notifier_block *this,
w = kmalloc(sizeof(*w), GFP_ATOMIC);
if (w) {
- INIT_WORK((struct work_struct *) w, nfc_urelease_event_work);
+ INIT_WORK(&w->w, nfc_urelease_event_work);
w->portid = n->portid;
- schedule_work((struct work_struct *) w);
+ schedule_work(&w->w);
}
out:
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] nfc: netlink: use &w->w in nfc_genl_rcv_nl_event
2021-01-15 4:14 [PATCH net-next] nfc: netlink: use &w->w in nfc_genl_rcv_nl_event Geliang Tang
@ 2021-01-16 4:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-16 4:20 UTC (permalink / raw)
To: Geliang Tang; +Cc: davem, kuba, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Fri, 15 Jan 2021 12:14:53 +0800 you wrote:
> Use the struct member w of the struct urelease_work directly instead of
> casting it.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
> net/nfc/netlink.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [net-next] nfc: netlink: use &w->w in nfc_genl_rcv_nl_event
https://git.kernel.org/netdev/net-next/c/32d91b4af353
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-16 4:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15 4:14 [PATCH net-next] nfc: netlink: use &w->w in nfc_genl_rcv_nl_event Geliang Tang
2021-01-16 4:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).