projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a9e3b
)
gpio: max732x: remove redundant check
author
Gaurav Singh
<gaurav1086@gmail.com>
Wed, 10 Jun 2020 11:36:30 +0000
(07:36 -0400)
committer
Linus Walleij
<linus.walleij@linaro.org>
Sat, 20 Jun 2020 20:15:39 +0000
(22:15 +0200)
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>
drivers/gpio/gpio-max732x.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-max732x.c
b/drivers/gpio/gpio-max732x.c
index
5fb0bcf
..
63472f3
100644
(file)
--- 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)