Skip to content
Commit cc33e542 authored by Bernhard Walle's avatar Bernhard Walle Committed by Ben Dooks
Browse files

i2c-octeon: Return -ETIMEDOUT in octeon_i2c_wait() on timeout



It doesn't make sense to set result to -ETIMEDOUT but return 0 (success)
afterwards. Since there's code in octeon_i2c_start() to handle the
error, it should be called.

Signed-off-by: default avatarBernhard Walle <walle@corscience.de>
Acked-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 5c64eb26
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