summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2021-01-15 12:14:53 +0800
committerJakub Kicinski <kuba@kernel.org>2021-01-15 20:08:28 -0800
commit32d91b4af35312cf559a45a07aad1f3bde996dfb (patch)
tree8d9fb691cf81527070b7e8d2a781c135231a4cfa /net/nfc
parent58f9f9b5555543d47ad9a721489b557a790dc0c7 (diff)
downloadlinux-stable-32d91b4af35312cf559a45a07aad1f3bde996dfb.tar.gz
linux-stable-32d91b4af35312cf559a45a07aad1f3bde996dfb.tar.bz2
linux-stable-32d91b4af35312cf559a45a07aad1f3bde996dfb.zip
nfc: netlink: use &w->w in nfc_genl_rcv_nl_event
Use the struct member w of the struct urelease_work directly instead of casting it. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Link: https://lore.kernel.org/r/f0ed86d6d54ac0834bd2e161d172bf7bb5647cf7.1610683862.git.geliangtang@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/netlink.c4
1 files 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: