]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btbcm: Fix calls to __hci_cmd_sync()
authorFrederic Danis <frederic.danis@linux.intel.com>
Fri, 15 May 2015 09:58:42 +0000 (11:58 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 15 May 2015 14:04:50 +0000 (16:04 +0200)
commitfa91b81911bc49583aada87831d7fa6ddfe48976
tree389f9badaca33a46c90c426c9ceea6b4d48b195f
parent9285175b83c266f62d090714d972370e97df697c
Bluetooth: btbcm: Fix calls to __hci_cmd_sync()

Remove test of command reply status as it is already performed by
__hci_cmd_sync().

__hci_cmd_sync_ev() function already returns an error if it got a
non-zero status either through a Command Complete or a Command
Status event.

For both of these events the status is collected up in the event
handlers called by hci_event_packet() and then passed as the second
parameter to req_complete_skb(). The req_complete_skb() callback in
turn is hci_req_sync_complete() for __hci_cmd_sync_ev() which stores
the status in hdev->req_result. The hdev->req_result is then further
converted through bt_to_errno() back in __hci_cmd_sync_ev().

Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btbcm.c