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)
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

Simple merge