Commit 8a0ecfe7 authored by Waldemar Rymarkiewicz's avatar Waldemar Rymarkiewicz Committed by Samuel Ortiz

NFC: pn533: Fix missing parenthesis

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: default avatarWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 390a1bd8
...@@ -1724,9 +1724,10 @@ static int pn533_activate_target_nfcdep(struct pn533 *dev) ...@@ -1724,9 +1724,10 @@ static int pn533_activate_target_nfcdep(struct pn533 *dev)
rsp = (struct pn533_cmd_activate_response *)resp->data; rsp = (struct pn533_cmd_activate_response *)resp->data;
rc = rsp->status & PN533_CMD_RET_MASK; rc = rsp->status & PN533_CMD_RET_MASK;
if (rc != PN533_CMD_RET_SUCCESS) if (rc != PN533_CMD_RET_SUCCESS) {
dev_kfree_skb(resp); dev_kfree_skb(resp);
return -EIO; return -EIO;
}
/* ATR_RES general bytes are located at offset 16 */ /* ATR_RES general bytes are located at offset 16 */
gt_len = resp->len - 16; gt_len = resp->len - 16;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment