Commit 5597da29 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Lee Jones
Browse files

mfd: da903x: Simplify function return logic



The invoked function already returns zero on success or a negative
errno code so there is no need to open code the logic in the caller.

Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Acked-by: default avatarAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent b158b69a
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -532,11 +532,7 @@ static int da903x_probe(struct i2c_client *client,
		return ret;
	}

	ret = da903x_add_subdevs(chip, pdata);
	if (ret)
		return ret;

	return 0;
	return da903x_add_subdevs(chip, pdata);
}

static int da903x_remove(struct i2c_client *client)