Skip to content

Commit

Permalink
NFC: pn533: Fix target polling mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Escande authored and Samuel Ortiz committed Feb 8, 2013
1 parent e0af11f commit 52f2eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nfc/pn533.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52f2eae

Please sign in to comment.