Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1220611 > unrolled thread

Re: [PATCH 1/2] pinctrl: qcom: ssbi: convert null test to IS_ERR test

Started byLinus Walleij <linus.walleij@linaro.org>
First post2015-09-08 11:00 +0200
Last post2015-09-08 11:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/2] pinctrl: qcom: ssbi: convert null test to IS_ERR test Linus Walleij <linus.walleij@linaro.org> - 2015-09-08 11:00 +0200

#1220611 — Re: [PATCH 1/2] pinctrl: qcom: ssbi: convert null test to IS_ERR test

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-09-08 11:00 +0200
SubjectRe: [PATCH 1/2] pinctrl: qcom: ssbi: convert null test to IS_ERR test
Message-ID<q6mUW-7Ly-39@gated-at.bofh.it>
On Mon, Aug 24, 2015 at 11:12 PM, Julia Lawall <Julia.Lawall@lip6.fr> wrote:

> Since commit 323de9efdf3e ("pinctrl: make pinctrl_register() return proper
> error code"), pinctrl_register returns an error code rather than NULL on
> failure.  Update some drivers that were introduced more recently.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> expression e,e1,e2;
> @@
>
> e = pinctrl_register(...)
> ... when != e = e1
> if (
> -   e == NULL
> +   IS_ERR(e)
>    ) {
>      ...
>      return
> -      e2
> +      PTR_ERR(e)
>      ;
>      }
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

Patch applied for fixes.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web