summaryrefslogtreecommitdiff
path: root/lib/crc-t10dif.c
diff options
context:
space:
mode:
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);
static int __init crc_t10dif_mod_init(void)
{
crct10dif_tfm = crypto_alloc_shash("crct10dif", 0, 0);
- if (IS_ERR(crct10dif_tfm))
- return PTR_ERR(crct10dif_tfm);
- return 0;
+ return PTR_RET(crct10dif_tfm);
}
static void __exit crc_t10dif_mod_fini(void)