mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
NFC: Fix not propagating return code in nfc_hci_clear_all_pipes
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>
This commit is contained in:
parent
80e4232ecb
commit
0250ffc578
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
static int nfc_hci_clear_all_pipes(struct nfc_hci_dev *hdev)
|
||||||
{
|
{
|
||||||
int r;
|
|
||||||
|
|
||||||
u8 param[2];
|
u8 param[2];
|
||||||
|
|
||||||
/* TODO: Find out what the identity reference data is
|
/* 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");
|
pr_debug("\n");
|
||||||
|
|
||||||
r = nfc_hci_execute_cmd(hdev, NFC_HCI_ADMIN_PIPE,
|
return nfc_hci_execute_cmd(hdev, NFC_HCI_ADMIN_PIPE,
|
||||||
NFC_HCI_ADM_CLEAR_ALL_PIPE, param, 2, NULL);
|
NFC_HCI_ADM_CLEAR_ALL_PIPE, param, 2, NULL);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate)
|
int nfc_hci_disconnect_gate(struct nfc_hci_dev *hdev, u8 gate)
|
||||||
|
|
Loading…
Add table
Reference in a new issue