NFC: pn533: Fix target polling mode
authorThierry Escande <thierry.escande@linux.intel.com>
Tue, 5 Feb 2013 09:08:35 +0000 (10:08 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 8 Feb 2013 11:18:48 +0000 (12:18 +0100)
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>
drivers/nfc/pn533.c

index bd5c41b481d39fd352f65aa22e17fc5be70ff713..f0f6763d67aefcf73dc7b87e118ebb42bef649f6 100644 (file)
@@ -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);