]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iio: sx9310: Simplify error return handling
authorDaniel Campello <campello@chromium.org>
Mon, 3 Aug 2020 23:58:10 +0000 (17:58 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:42 +0000 (19:40 +0100)
commita917af2ab8573a92b1434f9b45add3438edcbcb2
treec35482b2f5f5ac707b7a1023a2310a9c672195ce
parent124cbc339cabde29a0a4d2b9c51c5068884145b0
iio: sx9310: Simplify error return handling

Checks for non-zero return values to signal error conditions.

Signed-off-by: Daniel Campello <campello@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/sx9310.c