diff options
-rw-r--r-- | drivers/nfc/st21nfca/st21nfca.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c index 880193b4a053..0667272cca98 100644 --- a/drivers/nfc/st21nfca/st21nfca.c +++ b/drivers/nfc/st21nfca/st21nfca.c | |||
@@ -118,18 +118,6 @@ static int st21nfca_hci_load_session(struct nfc_hci_dev *hdev) | |||
118 | NFC_HCI_TERMINAL_HOST_ID, 0 | 118 | NFC_HCI_TERMINAL_HOST_ID, 0 |
119 | }; | 119 | }; |
120 | 120 | ||
121 | skb_pipe_list = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE, GFP_KERNEL); | ||
122 | if (!skb_pipe_list) { | ||
123 | r = -ENOMEM; | ||
124 | goto free_list; | ||
125 | } | ||
126 | |||
127 | skb_pipe_info = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE, GFP_KERNEL); | ||
128 | if (!skb_pipe_info) { | ||
129 | r = -ENOMEM; | ||
130 | goto free_info; | ||
131 | } | ||
132 | |||
133 | /* On ST21NFCA device pipes number are dynamics | 121 | /* On ST21NFCA device pipes number are dynamics |
134 | * A maximum of 16 pipes can be created at the same time | 122 | * A maximum of 16 pipes can be created at the same time |
135 | * If pipes are already created, hci_dev_up will fail. | 123 | * If pipes are already created, hci_dev_up will fail. |
@@ -212,7 +200,6 @@ static int st21nfca_hci_load_session(struct nfc_hci_dev *hdev) | |||
212 | memcpy(hdev->init_data.gates, st21nfca_gates, sizeof(st21nfca_gates)); | 200 | memcpy(hdev->init_data.gates, st21nfca_gates, sizeof(st21nfca_gates)); |
213 | free_info: | 201 | free_info: |
214 | kfree_skb(skb_pipe_info); | 202 | kfree_skb(skb_pipe_info); |
215 | free_list: | ||
216 | kfree_skb(skb_pipe_list); | 203 | kfree_skb(skb_pipe_list); |
217 | return r; | 204 | return r; |
218 | } | 205 | } |