Commit f8eaf298 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

lib/libcrc32c.c: use PTR_ERR_OR_ZERO

replace IS_ERR/PTR_ERR
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bf4d064d
...@@ -62,10 +62,7 @@ EXPORT_SYMBOL(crc32c); ...@@ -62,10 +62,7 @@ EXPORT_SYMBOL(crc32c);
static int __init libcrc32c_mod_init(void) static int __init libcrc32c_mod_init(void)
{ {
tfm = crypto_alloc_shash("crc32c", 0, 0); tfm = crypto_alloc_shash("crc32c", 0, 0);
if (IS_ERR(tfm)) return PTR_ERR_OR_ZERO(tfm);
return PTR_ERR(tfm);
return 0;
} }
static void __exit libcrc32c_mod_fini(void) static void __exit libcrc32c_mod_fini(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment