Skip to content
Commit cbf73ae5 authored by Martin Kelly's avatar Martin Kelly Committed by Jonathan Cameron
Browse files

iio: imu: inv_mpu6050: make loop a do-while



Prior to this loop, we check if fifo_count < bytes_per_datum and bail if
so. This means that when we hit the loop, we know that fifo_count >=
bytes_per_datum, so the check is unneeded and we can turn the loop into
a do-while for a slight performance improvement.

Signed-off-by: default avatarMartin Kelly <mkelly@xevo.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 21f4bb87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment