summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-11-15 11:14:53 -0500
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-11-19 16:24:45 -0500
commit96eff46e9f5632efa0d2941f7e028701a5f1a0f6 (patch)
treef5d7604239ee81bb35f41a84494d5adfaf864d54 /net/bluetooth
parentc1d5dc4ac15be45c7061e207f06ad8dfba0c2170 (diff)
Bluetooth: Use __l2cap_no_conn_pending helper
Use helper instead of test_bit. This is the only place left using test CONF_CONNECT_PEND flag. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index a1faaab41839..4479894e0a5a 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -6380,7 +6380,7 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
6380 continue; 6380 continue;
6381 } 6381 }
6382 6382
6383 if (test_bit(CONF_CONNECT_PEND, &chan->conf_state)) { 6383 if (!__l2cap_no_conn_pending(chan)) {
6384 l2cap_chan_unlock(chan); 6384 l2cap_chan_unlock(chan);
6385 continue; 6385 continue;
6386 } 6386 }