summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2021-04-11 20:11:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-12 11:41:22 +0200
commit7a4da84ce81810eb6f9f0842c7199f1d57fbca79 (patch)
tree38945caa5bc93c1060b7b4b6c0c1ab1f100e4139 /drivers/staging
parent0e345d97730678d526bed36947beda4eb15642de (diff)
downloadlinux-7a4da84ce81810eb6f9f0842c7199f1d57fbca79.tar.bz2
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
index 22989866ff70..2db2332f80de 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
@@ -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],