]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: mux: Fix error path in i2c-arb-gpio
authorMichal Simek <michal.simek@amd.com>
Thu, 1 Aug 2024 08:01:30 +0000 (10:01 +0200)
committerHeiko Schocher <hs@denx.de>
Fri, 9 Aug 2024 12:46:05 +0000 (14:46 +0200)
commit6d06fdb93c13e3b989091918aaa60b04b347ab55
tree51541f9d9cb2ca73b890cb11e432540288b1dc6f
parent3c91589a14c9a39b0e0e440b5af4273b6147a8d2
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: Michal Simek <michal.simek@amd.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/muxes/i2c-arb-gpio-challenge.c