Bluetooth: Remove unneeded val variable when setting SSP
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Oct 2013 10:08:10 +0000 (03:08 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Oct 2013 10:54:51 +0000 (12:54 +0200)
commit72ef0c1a9e62c3dd3b4841c8c8a1f259bf7b5d94
tree6e6579ee9c272fe4fe0bdbeb8cab298cb35b78a7
parent620ad5219c0f0aa43731b2fd8fd9efac78c10deb
Bluetooth: Remove unneeded val variable when setting SSP

The variable val in the set_ssp() function of the management interface
is not needed. Just use cp->val directly since its input values have
already been validated.

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