diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-07-03 00:32:45 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-07-04 09:38:47 +0200 |
commit | 8a7b179781e865ca2c7fe4ce9a7976f45c070f53 (patch) | |
tree | a7da48b36573fe1f382b49df1325b6595d2f6662 /.cocciconfig | |
parent | gpiolib: Clarify use of non-sleeping functions (diff) | |
download | linux-8a7b179781e865ca2c7fe4ce9a7976f45c070f53.tar.xz linux-8a7b179781e865ca2c7fe4ce9a7976f45c070f53.zip |
gpio: stp-xway: simplify error handling in xway_stp_probe()
Return early if devm_gpiochip_add_data() returns an error instead of
having two consecutive "if (!ret) ..." statements.
Also make xway_stp_hw_init() return void because it unconditionally
returns 0. While here also update the kerneldoc comment for
xway_stp_hw_init().
These changes makes the error handling within the driver consistent.
No functional changes intended.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20190702223248.31934-2-martin.blumenstingl@googlemail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions