From: Frederic Danis Date: Fri, 15 May 2015 09:58:40 +0000 (+0200) Subject: Bluetooth: btusb: Fix calls to __hci_cmd_sync() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~183^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e13441ca413f5a8d04601d675accb35d37c6b08;p=pandora-kernel.git Bluetooth: btusb: 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed