Bluetooth: Simplify read_adv_features code
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 26 Nov 2015 10:15:58 +0000 (12:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Dec 2015 23:51:49 +0000 (00:51 +0100)
commit02c04afea93fbba7925984df455bc63e7d92da97
tree0d57ff0c0f7f4b55d692b8ee1aa92a3a7e063cf6
parent2ff13894cfb877cb3d02d96a8402202f0a6f3efd
Bluetooth: Simplify read_adv_features code

The code in the Read Advertising Features mgmt command handler is
unnecessarily complicated. Clean it up and remove unnecessary
variables & branches.

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