Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebe5c543 authored by kbuild test robot's avatar kbuild test robot Committed by Jonathan Cameron
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 36736cc6
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -983,11 +983,7 @@ static int apds9960_chip_init(struct apds9960_data *data)
	if (ret)
		return ret;

	ret = apds9960_set_powermode(data, 1);
	if (ret)
		return ret;

	return 0;
	return apds9960_set_powermode(data, 1);
}

static int apds9960_probe(struct i2c_client *client,