Skip to content
Commit 688ec344 authored by Axel Lin's avatar Axel Lin Committed by Florian Tobias Schandinat
Browse files

video: pxa3xx-gcu: Simplify the logic to exit while loop in pxa3xx_gcu_wait_idle



If wait_event_interruptible_timeout returns a positive value, it means
the condition evaluated is true. Which means priv->shared->hw_running is false.
And then we will exit the loop.

This patch simplifies the logic to exit the while loop.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent 79d3c41a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment