]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b9684a1a482caab1f27cb0faec6cb518990844c
treef4f082493e65798b1c513d649dcf5cb5caffd660
parent4b812e7b8cf5f2fb0e4ac9f5671309ba3527a8a9
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