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

Commit 66eb3bd8 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Walleij
Browse files

pinctrl: use ERR_CAST instead of ERR_PTR/PTR_ERR



Inspired by scripts/coccinelle/api/err_cast.cocci

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 0b354dc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ static inline struct pinctrl * __must_check pinctrl_get_select(
	s = pinctrl_lookup_state(p, name);
	if (IS_ERR(s)) {
		pinctrl_put(p);
		return ERR_PTR(PTR_ERR(s));
		return ERR_CAST(s);
	}

	ret = pinctrl_select_state(p, s);