]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Bluetooth: Use __l2cap_no_conn_pending helper
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 15 Nov 2012 16:14:53 +0000 (18:14 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 19 Nov 2012 21:24:45 +0000 (19:24 -0200)
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>
net/bluetooth/l2cap_core.c

index a1faaab4183927169e00b291a2359938e9aaf2cf..4479894e0a5a154731f665039bc1581910f21ce8 100644 (file)
@@ -6380,7 +6380,7 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
                        continue;
                }
 
-               if (test_bit(CONF_CONNECT_PEND, &chan->conf_state)) {
+               if (!__l2cap_no_conn_pending(chan)) {
                        l2cap_chan_unlock(chan);
                        continue;
                }