i2c: rcar: avoid non-standard use of goto
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 6 Sep 2023 20:00:19 +0000 (22:00 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 19 Sep 2023 09:10:28 +0000 (11:10 +0200)
commitbe944ceb6761a6198f5df51c36fd91eb9e112704
treebf4025061c99d0e54056f57a32bf71189d004351
parentf78ca48a8ba9cdec96e8839351e49eec3233b177
i2c: rcar: avoid non-standard use of goto

Kernel functions goto somewhere on error conditions. Using goto for the
default path is irritating. Let's bail out on error instead and use a
proper retval.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-rcar.c