Skip to content
Commit 6d06fdb9 authored by Michal Simek's avatar Michal Simek Committed by Heiko Schocher
Browse files

i2c: mux: Fix error path in i2c-arb-gpio



There is no reason to use goto and just call return. Better is to call
return directly which is done for some if/else parts.

Also make no sense to setup ret to -ETIMEDOUT and then to 0.
Return timeout directly.

Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent 3c91589a
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