* [PATCH 1/1 linux-next] pinctrl: use ERR_CAST instead of ERR_PTR/PTR_ERR
@ 2014-12-24 13:40 Fabian Frederick
0 siblings, 0 replies; only message in thread
From: Fabian Frederick @ 2014-12-24 13:40 UTC (permalink / raw)
To: linux-kernel; +Cc: Fabian Frederick, Linus Walleij, linux-gpio
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
include/linux/pinctrl/consumer.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index 18eccef..d7e5d60 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -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);
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-24 13:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-24 13:40 [PATCH 1/1 linux-next] pinctrl: use ERR_CAST instead of ERR_PTR/PTR_ERR Fabian Frederick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).