提交 32d91b4a 编写于 作者: G Geliang Tang 提交者: Jakub Kicinski

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: NGeliang Tang <geliangtang@gmail.com>
Link: https://lore.kernel.org/r/f0ed86d6d54ac0834bd2e161d172bf7bb5647cf7.1610683862.git.geliangtang@gmail.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
上级 58f9f9b5
...@@ -1819,9 +1819,9 @@ static int nfc_genl_rcv_nl_event(struct notifier_block *this, ...@@ -1819,9 +1819,9 @@ static int nfc_genl_rcv_nl_event(struct notifier_block *this,
w = kmalloc(sizeof(*w), GFP_ATOMIC); w = kmalloc(sizeof(*w), GFP_ATOMIC);
if (w) { if (w) {
INIT_WORK((struct work_struct *) w, nfc_urelease_event_work); INIT_WORK(&w->w, nfc_urelease_event_work);
w->portid = n->portid; w->portid = n->portid;
schedule_work((struct work_struct *) w); schedule_work(&w->w);
} }
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册