Bluetooth: Simplify the error handling of Start Discovery command
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Dec 2014 10:36:34 +0000 (11:36 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 4 Dec 2014 10:50:21 +0000 (12:50 +0200)
commitf5a969f23bc32945b0ec4bdb8084f514a5311142
treedb1dd05d98adec348e7f479a00a35d4e77421099
parent854bda1982bf126d0a951adfcac76ba6d000cd2b
Bluetooth: Simplify the error handling of Start Discovery command

The Start Discovery command has some complicated code when it comes
to error handling. With the future introduction of Start Service
Discovery simplifying this makes it easier to read.

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