pinctrl: use ERR_CAST instead of ERR_PTR(PTR_ERR(...))
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 30 Jul 2012 16:38:33 +0000 (18:38 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Sep 2012 11:21:37 +0000 (13:21 +0200)
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>
include/linux/pinctrl/consumer.h

index e9b7f43..d281645 100644 (file)
@@ -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);