Commit 96eff46e9f5632efa0d2941f7e028701a5f1a0f6

Authored by Andrei Emeltchenko
Committed by Gustavo Padovan
1 parent c1d5dc4ac1

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/bluetooth/l2cap_core.c
... ... @@ -6380,7 +6380,7 @@
6380 6380 continue;
6381 6381 }
6382 6382  
6383   - if (test_bit(CONF_CONNECT_PEND, &chan->conf_state)) {
  6383 + if (!__l2cap_no_conn_pending(chan)) {
6384 6384 l2cap_chan_unlock(chan);
6385 6385 continue;
6386 6386 }