Skip to content

Commit

Permalink
pinctrl: use ERR_CAST instead of ERR_PTR(PTR_ERR(...))
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Linus Walleij committed Sep 3, 2012
1 parent 4cbe5a5 commit e60bc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/pinctrl/consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e60bc2d

Please sign in to comment.