summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGaurav Singh <gaurav1086@gmail.com>2020-06-21 01:40:53 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-06-22 19:50:01 +0300
commit8346b92ecddfae624b1dd4631e840fb98f5430cd (patch)
tree0d271ef887bf1d2604191e8ee9c78295131009d8 /drivers
parent3ba3ff5c0966280bfd1d40b05b1d7c089f45cc9b (diff)
downloadlinux-8346b92ecddfae624b1dd4631e840fb98f5430cd.tar.xz
gpio: max732x: remove redundant check from probe()
The pdata is already checked for its validity. Remove the redundant check. Signed-off-by: Gaurav Singh <gaurav1086@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers')
-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)