Skip to content
Commit 29e3e06d authored by Phil Reid's avatar Phil Reid Committed by Jonathan Cameron
Browse files

iio: buffer-dma: Use ARRAY_SIZE in for loop range



Use the ARRAY_SIZE macro in the for loops that access queue->fileio.blocks.
Macro is already used in a couple of places where this access occurs,
but range was hardcoded in these locations.

Signed-off-by: default avatarPhil Reid <preid@electromag.com.au>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent c48c7b2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment