diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2013-01-22 12:29:26 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-02-04 21:16:53 +0800 |
commit | ea0d1aff21b1bd3252424f200c7de510403edfa5 (patch) | |
tree | e35334b766a08664d17a92ae9f328eab0fc9552b /crypto/md4.c | |
parent | 90df61c376d68903c14f0c5e74254f493f8861a2 (diff) | |
download | linux-crypto-ea0d1aff21b1bd3252424f200c7de510403edfa5.tar.gz linux-crypto-ea0d1aff21b1bd3252424f200c7de510403edfa5.zip |
crypto: use ERR_CAST
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>
Diffstat (limited to 'crypto/md4.c')
0 files changed, 0 insertions, 0 deletions