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)
commit7b4db2e3e64a4a6028ff8cd1682df67df92a3ad4
tree804ab7b66b67dcea1538f86c070f470869028b6e
parent5cf05135b0b204cde00418045861f032b74fd072
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