Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340937
b: refs/heads/master
c: 9222390
h: refs/heads/master
i:
  340935: 32e1b7e
v: v3
  • Loading branch information
Samuel Ortiz committed Oct 26, 2012
1 parent 5ca1f49 commit c68d7fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6a0915f8c2d794030097ebe0adb85ee904ebac3
refs/heads/master: 922239064bb39b4ed9329ffd9418c20f8d64cbbb
10 changes: 1 addition & 9 deletions trunk/net/nfc/llcp/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ int nfc_llcp_disconnect(struct nfc_llcp_sock *sock)
struct sk_buff *skb;
struct nfc_dev *dev;
struct nfc_llcp_local *local;
u16 size = 0;

pr_debug("Sending DISC\n");

Expand All @@ -273,17 +272,10 @@ int nfc_llcp_disconnect(struct nfc_llcp_sock *sock)
if (dev == NULL)
return -ENODEV;

size += LLCP_HEADER_SIZE;
size += dev->tx_headroom + dev->tx_tailroom + NFC_HEADER_SIZE;

skb = alloc_skb(size, GFP_ATOMIC);
skb = llcp_allocate_pdu(sock, LLCP_PDU_DISC, 0);
if (skb == NULL)
return -ENOMEM;

skb_reserve(skb, dev->tx_headroom + NFC_HEADER_SIZE);

skb = llcp_add_header(skb, sock->dsap, sock->ssap, LLCP_PDU_DISC);

skb_queue_tail(&local->tx_queue, skb);

return 0;
Expand Down

0 comments on commit c68d7fe

Please sign in to comment.