mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
gpio: remove useless check in gpiolib_sysfs_init()
An iterator variable cannot be NULL in its loop. Reported-by: Julia Lawall <[email protected]> Signed-off-by: Alexandre Courbot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
f7d4ad98fd
commit
7fd834ad77
1 changed files with 1 additions and 1 deletions
|
|
@ -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