mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
nfc: llcp: use test_bit()
Use test_bit() instead of open-coding it, just like in other places touching the bitmap. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4dbbf673f7
commit
a736491239
@ -383,7 +383,7 @@ u8 nfc_llcp_get_sdp_ssap(struct nfc_llcp_local *local,
|
||||
pr_debug("WKS %d\n", ssap);
|
||||
|
||||
/* This is a WKS, let's check if it's free */
|
||||
if (local->local_wks & BIT(ssap)) {
|
||||
if (test_bit(ssap, &local->local_wks)) {
|
||||
mutex_unlock(&local->sdp_lock);
|
||||
|
||||
return LLCP_SAP_MAX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user