gpio: remove useless check in gpiolib_sysfs_init()
An iterator variable cannot be NULL in its loop. Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
f7d4ad98fd
commit
7fd834ad77
|
@ -804,7 +804,7 @@ static int __init gpiolib_sysfs_init(void)
|
|||
*/
|
||||
spin_lock_irqsave(&gpio_lock, flags);
|
||||
list_for_each_entry(chip, &gpio_chips, list) {
|
||||
if (!chip || chip->exported)
|
||||
if (chip->exported)
|
||||
continue;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue