iio: apds9960: light: fix simple_return.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 22 Sep 2015 02:21:48 +0000 (10:21 +0800)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Sep 2015 19:23:30 +0000 (20:23 +0100)
commitebe5c543cf8ed3010881a8d863e954b961013fea
tree379c5c225576d0cafe86fd9a64c61b02b6ea314b
parent36736cc66bcedcd25b65faff43e352491409971f
iio: apds9960: light: fix simple_return.cocci warnings

drivers/iio/light/apds9960.c:986:1-4: WARNING: end returns can be simpified

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.

Generated by: scripts/coccinelle/misc/simple_return.cocci

CC: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/apds9960.c