From: Gaurav Singh Date: Wed, 10 Jun 2020 11:36:30 +0000 (-0400) Subject: gpio: max732x: remove redundant check X-Git-Tag: v5.15~3204^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f6bd574e9d575bd79bca8312dfd3d9345389940;p=platform%2Fkernel%2Flinux-starfive.git gpio: max732x: remove redundant check The pdata is already checked for its validity. Remove this redundant check. Signed-off-by: Gaurav Singh Link: https://lore.kernel.org/r/20200610113630.11922-1-gaurav1086@gmail.com Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-max732x.c b/drivers/gpio/gpio-max732x.c index 5fb0bcf..63472f3 100644 --- a/drivers/gpio/gpio-max732x.c +++ b/drivers/gpio/gpio-max732x.c @@ -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)