NFC: pn533: Fix missing parenthesis
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Fri, 21 Dec 2012 09:39:01 +0000 (10:39 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 9 Jan 2013 23:51:55 +0000 (00:51 +0100)
This is a quite critical patch as it fixes potential reference to
undefined general_bytes which were never set correctly on target
activation due to missing parenthesis.

Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c

index 31a5b3b53b2a0280d4090ba5a186642b1678fb00..f1702f9457019968f227bf9a52bf96e6ea8d4837 100644 (file)
@@ -1724,9 +1724,10 @@ static int pn533_activate_target_nfcdep(struct pn533 *dev)
 
        rsp = (struct pn533_cmd_activate_response *)resp->data;
        rc = rsp->status & PN533_CMD_RET_MASK;
-       if (rc != PN533_CMD_RET_SUCCESS)
+       if (rc != PN533_CMD_RET_SUCCESS) {
                dev_kfree_skb(resp);
                return -EIO;
+       }
 
        /* ATR_RES general bytes are located at offset 16 */
        gt_len = resp->len - 16;