pinctrl: use ERR_CAST instead of ERR_PTR(PTR_ERR(...))
This doesn't change semantics, just looks nicer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
4cbe5a555f
commit
e60bc2df9b
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ static inline struct pinctrl * __must_check devm_pinctrl_get_select(
|
||||||
s = pinctrl_lookup_state(p, name);
|
s = pinctrl_lookup_state(p, name);
|
||||||
if (IS_ERR(s)) {
|
if (IS_ERR(s)) {
|
||||||
devm_pinctrl_put(p);
|
devm_pinctrl_put(p);
|
||||||
return ERR_PTR(PTR_ERR(s));
|
return ERR_CAST(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = pinctrl_select_state(p, s);
|
ret = pinctrl_select_state(p, s);
|
||||||
|
|
Loading…
Reference in a new issue