]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Update hci_disconnect() to return an error value
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Aug 2014 17:33:32 +0000 (20:33 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 17:07:55 +0000 (19:07 +0200)
commit6ce5c10bd71eb8f13ddd43d08edf8ad3f3b776e5
tree3b3d8063e8610516015028160b3fed08d551be7a
parent651f0a06e10d7ae8646d03dd7e38fd7dc081a3b6
Bluetooth: Update hci_disconnect() to return an error value

We'll soon use hci_disconnect() from places that are interested to know
whether the hci_send_cmd() really succeeded or not. This patch updates
hci_disconnect() to pass on any error returned from hci_send_cmd().

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c