summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-max732x.c
diff options
context:
space:
mode:
authorGaurav Singh <gaurav1086@gmail.com>2020-06-10 07:36:30 -0400
committerLinus Walleij <linus.walleij@linaro.org>2020-06-20 22:15:39 +0200
commit1f6bd574e9d575bd79bca8312dfd3d9345389940 (patch)
tree93320b9adbced7f5a25a507136fc7514a25815f2 /drivers/gpio/gpio-max732x.c
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff)
gpio: max732x: remove redundant check
The pdata is already checked for its validity. Remove this redundant check. Signed-off-by: Gaurav Singh <gaurav1086@gmail.com> Link: https://lore.kernel.org/r/20200610113630.11922-1-gaurav1086@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-max732x.c')
-rw-r--r--drivers/gpio/gpio-max732x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-max732x.c b/drivers/gpio/gpio-max732x.c
index 5fb0bcf31142..63472f308857 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)