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>
This commit is contained in:
Rickard Strandqvist 2014-06-26 18:18:51 +02:00 коммит произвёл Linus Walleij
Родитель fe5e23d3c9
Коммит 31a3f9da4e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -70,7 +70,7 @@ static int ucb1400_gpio_probe(struct platform_device *dev)
if (err)
goto err;
if (ucb && ucb->gpio_setup)
if (ucb->gpio_setup)
err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio);
err: