Bluetooth: Remove mgmt_valid_hdev() helper function
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Oct 2013 15:25:01 +0000 (08:25 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 6 Oct 2013 15:58:45 +0000 (17:58 +0200)
commit1514b8928e5d8273920b26276cd9617b6dbc7760
treef4f082493e65798b1c513d649dcf5cb5caffd660
parenta6d811ed28f7c49e869b4076a00969c4028cda0d
Bluetooth: Remove mgmt_valid_hdev() helper function

The helper function mgmt_valid_hdev() is more obfuscating the code
then it makes it easier to read. So intead of this helper, use the
direct check for BR/EDR device type.

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