iio: apds9960: light: fix simple_return.cocci warnings
[deliverable/linux.git] / drivers / iio / light / apds9960.c
index 27f415743733ce71be4cd99f295afb9e3003bbd1..8d7ce6a9296dc4ee9d99a132425fb6cc4bdc3104 100644 (file)
@@ -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,
This page took 0.027577 seconds and 5 git commands to generate.