Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e60bc2df authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Linus Walleij
Browse files

pinctrl: use ERR_CAST instead of ERR_PTR(PTR_ERR(...))



This doesn't change semantics, just looks nicer.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4cbe5a55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ static inline struct pinctrl * __must_check devm_pinctrl_get_select(
	s = pinctrl_lookup_state(p, name);
	if (IS_ERR(s)) {
		devm_pinctrl_put(p);
		return ERR_PTR(PTR_ERR(s));
		return ERR_CAST(s);
	}

	ret = pinctrl_select_state(p, s);