mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 06:04:23 +08:00
NFC: pn533: Fix target polling mode
Remove unneeded bitwise OR operator on uninitialized sk_buff data Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
e0af11fa0d
commit
52f2eaeec1
@ -1378,7 +1378,7 @@ static struct sk_buff *pn533_alloc_poll_tg_frame(struct pn533 *dev)
|
||||
return NULL;
|
||||
|
||||
/* DEP support only */
|
||||
*skb_put(skb, 1) |= PN533_INIT_TARGET_DEP;
|
||||
*skb_put(skb, 1) = PN533_INIT_TARGET_DEP;
|
||||
|
||||
/* MIFARE params */
|
||||
memcpy(skb_put(skb, 6), mifare_params, 6);
|
||||
|
Loading…
Reference in New Issue
Block a user