diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-12-14 10:43:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-14 14:50:12 -0500 |
commit | 7c7cd3bfec68fee33b30d177df6a6a0c4bbdc59d (patch) | |
tree | 7b7332d63303d30c73b4ecd8a300e84d801baa33 /drivers/nfc | |
parent | 52858b51b2c779a8f9db32accf774b165522ad81 (diff) |
NFC: Add tx skb allocation routine
This is a factorization of the current rawsock tx skb allocation routine,
as it will be used by the LLCP code.
We also rename nfc_alloc_skb to nfc_alloc_recv_skb for consistency sake.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/pn533.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index dbf214ef7321..ea1caaeed13c 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
@@ -1368,7 +1368,7 @@ static int pn533_data_exchange(struct nfc_dev *nfc_dev, u32 target_idx, | |||
1368 | PN533_CMD_DATAEXCH_DATA_MAXLEN + | 1368 | PN533_CMD_DATAEXCH_DATA_MAXLEN + |
1369 | PN533_FRAME_TAIL_SIZE; | 1369 | PN533_FRAME_TAIL_SIZE; |
1370 | 1370 | ||
1371 | skb_resp = nfc_alloc_skb(skb_resp_len, GFP_KERNEL); | 1371 | skb_resp = nfc_alloc_recv_skb(skb_resp_len, GFP_KERNEL); |
1372 | if (!skb_resp) { | 1372 | if (!skb_resp) { |
1373 | rc = -ENOMEM; | 1373 | rc = -ENOMEM; |
1374 | goto error; | 1374 | goto error; |