aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crc-t10dif.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2013-06-05 04:27:51 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2013-06-05 04:27:51 -0400
commit67822649d7305caf3dd50ed46c27b99c94eff996 (patch)
treee12f15bf5e8ebad64f33df36ac8a6a8f95f811e0 /lib/crc-t10dif.c
parentbbb85b25688fcdc70b895711870c23de7b12721b (diff)
crypto: crct10dif - Use PTR_RET
lib/crc-t10dif.c:42:1-3: WARNING: PTR_RET can be used Use PTR_RET rather than if(IS_ERR(...)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crc-t10dif.c')
-rw-r--r--lib/crc-t10dif.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/crc-t10dif.c b/lib/crc-t10dif.c
index 0cb64634f513..fe3428c07b47 100644
--- a/lib/crc-t10dif.c
+++ b/lib/crc-t10dif.c
@@ -39,9 +39,7 @@ EXPORT_SYMBOL(crc_t10dif);
39static int __init crc_t10dif_mod_init(void) 39static int __init crc_t10dif_mod_init(void)
40{ 40{
41 crct10dif_tfm = crypto_alloc_shash("crct10dif", 0, 0); 41 crct10dif_tfm = crypto_alloc_shash("crct10dif", 0, 0);
42 if (IS_ERR(crct10dif_tfm)) 42 return PTR_RET(crct10dif_tfm);
43 return PTR_ERR(crct10dif_tfm);
44 return 0;
45} 43}
46 44
47static void __exit crc_t10dif_mod_fini(void) 45static void __exit crc_t10dif_mod_fini(void)