crypto: use ERR_CAST
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 22 Jan 2013 11:29:26 +0000 (12:29 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 4 Feb 2013 13:16:53 +0000 (21:16 +0800)
Replace PTR_ERR followed by ERR_PTR by ERR_CAST, to be more concise.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression err,x;
@@
-       err = PTR_ERR(x);
        if (IS_ERR(x))
-                return ERR_PTR(err);
+                return ERR_CAST(x);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found