From: Andrei Emeltchenko Date: Thu, 15 Nov 2012 16:14:53 +0000 (+0200) Subject: Bluetooth: Use __l2cap_no_conn_pending helper X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=96eff46e9f5632efa0d2941f7e028701a5f1a0f6;p=~shefty%2Frdma-dev.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index a1faaab4183..4479894e0a5 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) continue; } - if (test_bit(CONF_CONNECT_PEND, &chan->conf_state)) { + if (!__l2cap_no_conn_pending(chan)) { l2cap_chan_unlock(chan); continue; }