提交 3988d663 编写于 作者: C Christophe JAILLET 提交者: Linus Walleij

gpiolib: Fix a WARN_ON that can never trigger

"if (!x) WARN_ON(x)" can never trigger.
Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 73547406
...@@ -1422,8 +1422,7 @@ void devm_gpiochip_remove(struct device *dev, struct gpio_chip *chip) ...@@ -1422,8 +1422,7 @@ void devm_gpiochip_remove(struct device *dev, struct gpio_chip *chip)
ret = devres_release(dev, devm_gpio_chip_release, ret = devres_release(dev, devm_gpio_chip_release,
devm_gpio_chip_match, chip); devm_gpio_chip_match, chip);
if (!ret) WARN_ON(ret);
WARN_ON(ret);
} }
EXPORT_SYMBOL_GPL(devm_gpiochip_remove); EXPORT_SYMBOL_GPL(devm_gpiochip_remove);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册