diff options
author | Gaurav Singh <gaurav1086@gmail.com> | 2020-06-21 01:40:53 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-06-22 19:50:01 +0300 |
commit | 8346b92ecddfae624b1dd4631e840fb98f5430cd (patch) | |
tree | 0d271ef887bf1d2604191e8ee9c78295131009d8 /drivers | |
parent | 3ba3ff5c0966280bfd1d40b05b1d7c089f45cc9b (diff) | |
download | linux-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.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) |