diff options
| author | Fabian Frederick <fabf@skynet.be> | 2015-04-27 12:04:05 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2015-05-06 09:34:51 -0400 |
| commit | 66eb3bd857f5311f72c7c371f78ddc9c472befba (patch) | |
| tree | 3f2cebf02c180510fb7cb040383a2bcf49af6a54 /include/linux/pinctrl | |
| parent | 0b354dc4335b230c05d8de3648404943553ca54f (diff) | |
pinctrl: use ERR_CAST instead of ERR_PTR/PTR_ERR
Inspired by scripts/coccinelle/api/err_cast.cocci
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
| -rw-r--r-- | include/linux/pinctrl/consumer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index 18eccefea06e..d7e5d608faa7 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( | |||
| 142 | s = pinctrl_lookup_state(p, name); | 142 | s = pinctrl_lookup_state(p, name); |
| 143 | if (IS_ERR(s)) { | 143 | if (IS_ERR(s)) { |
| 144 | pinctrl_put(p); | 144 | pinctrl_put(p); |
| 145 | return ERR_PTR(PTR_ERR(s)); | 145 | return ERR_CAST(s); |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | ret = pinctrl_select_state(p, s); | 148 | ret = pinctrl_select_state(p, s); |
