提交 52f2eaee 编写于 作者: T Thierry Escande 提交者: Samuel Ortiz

NFC: pn533: Fix target polling mode

Remove unneeded bitwise OR operator on uninitialized sk_buff data
Signed-off-by: NThierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 e0af11fa
...@@ -1378,7 +1378,7 @@ static struct sk_buff *pn533_alloc_poll_tg_frame(struct pn533 *dev) ...@@ -1378,7 +1378,7 @@ static struct sk_buff *pn533_alloc_poll_tg_frame(struct pn533 *dev)
return NULL; return NULL;
/* DEP support only */ /* DEP support only */
*skb_put(skb, 1) |= PN533_INIT_TARGET_DEP; *skb_put(skb, 1) = PN533_INIT_TARGET_DEP;
/* MIFARE params */ /* MIFARE params */
memcpy(skb_put(skb, 6), mifare_params, 6); memcpy(skb_put(skb, 6), mifare_params, 6);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册