staging: iio: tsl2x7x: simplify tsl2x7x_write_interrupt_config return
authorBrian Masney <masneyb@onstation.org>
Sat, 21 Apr 2018 00:41:46 +0000 (20:41 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Apr 2018 15:17:59 +0000 (16:17 +0100)
commit8d0cc0905814fffeeb765b33ded34293586fef38
tree1753923ec7678198b236c71b6d286fa22e6c70d4
parent0ba50bef8f1a3a7aec1eac838eac2ff879d710a1
staging: iio: tsl2x7x: simplify tsl2x7x_write_interrupt_config return

tsl2x7x_write_interrupt_config() has an unnecessary return value check
at the end of the function. This patch changes the function to just
return the value from the call to tsl2x7x_invoke_change().

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