From: Waldemar Rymarkiewicz Date: Fri, 21 Dec 2012 09:39:01 +0000 (+0100) Subject: NFC: pn533: Fix missing parenthesis X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a0ecfe74b3692258311d084d31613516828905f;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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: Waldemar Rymarkiewicz Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index 31a5b3b53b2a..f1702f945701 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c @@ -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;