]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove useless external function to count controllers
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 5 Oct 2013 18:47:41 +0000 (11:47 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 6 Oct 2013 08:21:09 +0000 (10:21 +0200)
commit8c7cab1c7c5bbc9e88a729a4381c09ee4e9e5209
tree405b94b086e6035ba573bbde12217dc4eee08d1d
parent81254df2f7f4864181b5806061092215a4d58117
Bluetooth: Remove useless external function to count controllers

The list of controllers can be counted ahead of time and inline
inside the AMP discover handling. There is no need to export such
a function at all.

In addition just count the AMP controller and only allocated space
for a single mandatory BR/EDR controller. No need to allocate more
space than needed.

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/a2mp.c