From: Uwe Kleine-König Date: Mon, 30 Jul 2012 16:38:33 +0000 (+0200) Subject: pinctrl: use ERR_CAST instead of ERR_PTR(PTR_ERR(...)) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e60bc2df9ba5574af87a8d0fa249ceac9fa1d3bd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Walleij --- diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index e9b7f4350844..d2816454c263 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h @@ -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);