Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gaurav Singh and committed by
Linus Walleij
1f6bd574 b3a9e3b9

+1 -1
+1 -1
drivers/gpio/gpio-max732x.c
··· 703 703 if (ret) 704 704 return ret; 705 705 706 - if (pdata && pdata->setup) { 706 + if (pdata->setup) { 707 707 ret = pdata->setup(client, chip->gpio_chip.base, 708 708 chip->gpio_chip.ngpio, pdata->context); 709 709 if (ret < 0)