Commit 1f6bd574 authored by Gaurav Singh's avatar Gaurav Singh Committed by Linus Walleij
Browse files

gpio: max732x: remove redundant check



The pdata is already checked for its validity. Remove
this redundant check.

Signed-off-by: default avatarGaurav Singh <gaurav1086@gmail.com>
Link: https://lore.kernel.org/r/20200610113630.11922-1-gaurav1086@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent b3a9e3b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -703,7 +703,7 @@ static int max732x_probe(struct i2c_client *client,
	if (ret)
		return ret;

	if (pdata && pdata->setup) {
	if (pdata->setup) {
		ret = pdata->setup(client, chip->gpio_chip.base,
				chip->gpio_chip.ngpio, pdata->context);
		if (ret < 0)