]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Simplify logic when checking SMP_FLAG_TK_VALID
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Mar 2014 12:14:51 +0000 (14:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Mar 2014 20:55:05 +0000 (13:55 -0700)
commitbb39638c9f957cbaad839062990c27257d2564a8
treeee2f43e7ad82c2169aa9041cba244de563873fb4
parentc3c46597d65b2916380296bfc022ab8f03e9093d
Bluetooth: Simplify logic when checking SMP_FLAG_TK_VALID

This is a trivial coding style simplification by instead of having an
extra early return to instead revert the if condition and do the single
needed queue_work() call there.

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