OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58f9f9b
)
nfc: netlink: use &w->w in nfc_genl_rcv_nl_event
author
Geliang Tang
<geliangtang@gmail.com>
Fri, 15 Jan 2021 04:14:53 +0000
(12:14 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 16 Jan 2021 04:08:28 +0000
(20:08 -0800)
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>
net/nfc/netlink.c
patch
|
blob
|
history
diff --git
a/net/nfc/netlink.c
b/net/nfc/netlink.c
index
573b38a
..
6409063
100644
(file)
--- 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: