Skip to content

Commit e60bc2d

Browse files
Uwe Kleine-KönigLinus Walleij
authored andcommitted
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>
1 parent 4cbe5a5 commit e60bc2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/pinctrl/consumer.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static inline struct pinctrl * __must_check devm_pinctrl_get_select(
140140
s = pinctrl_lookup_state(p, name);
141141
if (IS_ERR(s)) {
142142
devm_pinctrl_put(p);
143-
return ERR_PTR(PTR_ERR(s));
143+
return ERR_CAST(s);
144144
}
145145

146146
ret = pinctrl_select_state(p, s);

0 commit comments

Comments
 (0)