Bluetooth: Check req->err in hci_req_add
authorAndre Guedes <andre.guedes@openbossa.org>
Fri, 8 Mar 2013 14:20:18 +0000 (11:20 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 9 Mar 2013 20:11:26 +0000 (17:11 -0300)
commit34739c1effcbdc6d210324e86514fa2d2d47b12b
treebfd17bde1effc2b3366e8b3b7c3bcaa73acedc46
parente348fe6bbab85c513816d2536ffabac4be016442
Bluetooth: Check req->err in hci_req_add

If req->err is set, there is no point in queueing the HCI command
in HCI request command queue since it won't be sent anyway.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c