]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2x7x: use direct returns
authorBrian Masney <masneyb@onstation.org>
Fri, 11 May 2018 00:12:16 +0000 (20:12 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 May 2018 11:15:47 +0000 (12:15 +0100)
commit45175d98b0acf4dd7a76e7931c37ba3f5ec04e63
tree804ab7b66b67dcea1538f86c070f470869028b6e
parentf29e21e21460af0f4cc64450280853b4e5645015
staging: iio: tsl2x7x: use direct returns

This patch changes the functions tsl2x7x_read_event_value() and
tsl2x7x_read_raw() to use direct returns to simplify the code.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c