projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e4232
)
NFC: Fix not propagating return code in nfc_hci_clear_all_pipes
author
Szymon Janc
<szymon.janc@tieto.com>
Thu, 4 Oct 2012 13:15:49 +0000
(15:15 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 26 Oct 2012 16:26:49 +0000
(18:26 +0200)
Return code from nfc_hci_execute_cmd was not propagated to caller.
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/hci/command.c
patch
|
blob
|
history
diff --git
a/net/nfc/hci/command.c
b/net/nfc/hci/command.c
index e15dd684854b691af622b0f6f9ff67c6bc257444..07659cfd6d7b9fab1cc2c241c39ae2ef92c0cc2b 100644
(file)
--- a/
net/nfc/hci/command.c
+++ b/
net/nfc/hci/command.c
@@
-279,8
+279,6
@@
static int nfc_hci_delete_pipe(struct nfc_hci_dev *hdev, u8 pipe)
static int nfc_hci_clear_all_pipes(struct nfc_hci_dev *hdev)
{
- int r;
-
u8 param[2];
/* TODO: Find out what the identity reference data is
@@
-288,10
+286,8
@@
static int nfc_hci_clear_all_pipes(struct nfc_hci_dev *hdev)
pr_debug("\n");
- r = nfc_hci_execute_cmd(hdev, NFC_HCI_ADMIN_PIPE,
- NFC_HCI_ADM_CLEAR_ALL_PIPE, param, 2, NULL);
-
- return 0;
+ return nfc_hci_execute_cmd(hdev, NFC_HCI_ADMIN_PIPE,
+ NFC_HCI_ADM_CLEAR_ALL_PIPE, param, 2, NULL);
}
int nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate)