mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
gpiolib: Fix a WARN_ON that can never trigger
"if (!x) WARN_ON(x)" can never trigger. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
7354740666
commit
3988d663c0
1 changed files with 1 additions and 2 deletions
|
@ -1422,8 +1422,7 @@ void devm_gpiochip_remove(struct device *dev, struct gpio_chip *chip)
|
|||
|
||||
ret = devres_release(dev, devm_gpio_chip_release,
|
||||
devm_gpio_chip_match, chip);
|
||||
if (!ret)
|
||||
WARN_ON(ret);
|
||||
WARN_ON(ret);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(devm_gpiochip_remove);
|
||||
|
||||
|
|
Loading…
Reference in a new issue