Bluetooth: Move New LTK store hint evaluation into mgmt_new_ltk
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Feb 2014 12:57:45 +0000 (14:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Feb 2014 16:04:23 +0000 (08:04 -0800)
commitba74b666b5e581ef3d4912af73774fab48c03198
tree86b01f5865d1ba85fb4886b482f6364dc97ba19b
parentca9142b8825c159897cc4a246ea27585c82add4b
Bluetooth: Move New LTK store hint evaluation into mgmt_new_ltk

It's simpler (one less if-statement) to just evaluate the appropriate
value for store_hint in the mgmt_new_ltk function than to pass a boolean
parameter to the function. Furthermore, this simplifies moving the mgmt
event emission out from hci_add_ltk in subsequent patches.

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