diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-06-26 12:18:51 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-07-09 06:22:55 -0400 |
commit | 31a3f9da4e2d6a58d562aea608edab79c48bec34 (patch) | |
tree | ec1466b805f57239dd34b4492722f053341ad11f /drivers/gpio/gpio-ucb1400.c | |
parent | fe5e23d3c93525f3aa6e2f2c583c6a1615a339ef (diff) |
gpio: gpio-ucb1400.c: Cleaning up null pointer checks that could never happen
Removal of null pointer checks that could never happen
This was found using a static code analysis program called cppcheck
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ucb1400.c')
-rw-r--r-- | drivers/gpio/gpio-ucb1400.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ucb1400.c b/drivers/gpio/gpio-ucb1400.c index 2445fe771179..d520dc9ed709 100644 --- a/drivers/gpio/gpio-ucb1400.c +++ b/drivers/gpio/gpio-ucb1400.c | |||
@@ -70,7 +70,7 @@ static int ucb1400_gpio_probe(struct platform_device *dev) | |||
70 | if (err) | 70 | if (err) |
71 | goto err; | 71 | goto err; |
72 | 72 | ||
73 | if (ucb && ucb->gpio_setup) | 73 | if (ucb->gpio_setup) |
74 | err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio); | 74 | err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio); |
75 | 75 | ||
76 | err: | 76 | err: |