mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 10:20:17 -04:00
staging: vchiq_core: use BITSET_WORD macro
Use this macro to make the index retrieval less opaque. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Link: https://lore.kernel.org/r/1618164700-21150-8-git-send-email-stefan.wahren@i2se.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0e345d9773
commit
7a4da84ce8
@@ -547,7 +547,7 @@ request_poll(struct vchiq_state *state, struct vchiq_service *service,
|
||||
} while (atomic_cmpxchg(&service->poll_flags, value,
|
||||
value | BIT(poll_type)) != value);
|
||||
|
||||
index = service->localport >> 5;
|
||||
index = BITSET_WORD(service->localport);
|
||||
do {
|
||||
value = atomic_read(&state->poll_services[index]);
|
||||
} while (atomic_cmpxchg(&state->poll_services[index],
|
||||
|
||||
Reference in New Issue
Block a user