]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Don't bother doing anything if auto_connect doesn't change
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 09:37:20 +0000 (12:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 09:58:09 +0000 (11:58 +0200)
commitb6a23e2537a2436ac14ad9177ad40155adf3022c
tree2819f8901eea02a14cdcfc11874c5b4112683a20
parent75652fbd08422a3519a6c5f7b7ba88982c199c2b
Bluetooth: Don't bother doing anything if auto_connect doesn't change

When hci_conn_params_set() is called if the new auto_connect value is
the same as the old one we don't need to take any action. Simply return
success from the function in this case.

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