]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove unnecessary LTK type check from hci_add_ltk
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 31 Jan 2014 03:39:59 +0000 (19:39 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:40 +0000 (09:51 +0200)
commit2d99ad50961e8861b7db64af7c557e795590ed43
treebbcc370c7aa8e9ba8826eb87575e39919178a8a5
parentafb64fc486d0f93b2a4cadc84f497f0b6926d70b
Bluetooth: Remove unnecessary LTK type check from hci_add_ltk

All callers of hci_add_ltk pass a valid value to it. There are no places
where e.g. user space, the controller or the remote peer would be able
to cause invalid values to be passed. Therefore, just remove the
potentially confusing check from the beginning of the function.

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