diff options
author | Gaurav Singh <gaurav1086@gmail.com> | 2020-06-10 13:36:30 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-06-20 22:15:39 +0200 |
commit | 1f6bd574e9d575bd79bca8312dfd3d9345389940 (patch) | |
tree | 93320b9adbced7f5a25a507136fc7514a25815f2 /drivers/gpio/gpio-max732x.c | |
parent | Linux 5.8-rc1 (diff) | |
download | linux-1f6bd574e9d575bd79bca8312dfd3d9345389940.tar.xz linux-1f6bd574e9d575bd79bca8312dfd3d9345389940.zip |
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 '')
-rw-r--r-- | drivers/gpio/gpio-max732x.c | 2 |
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) |