Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/libcrc32c.c: use PTR_ERR_OR_ZERO

replace IS_ERR/PTR_ERR

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Fabian Frederick and committed by
Linus Torvalds
f8eaf298 bf4d064d

+1 -4
+1 -4
lib/libcrc32c.c
··· 62 62 static int __init libcrc32c_mod_init(void) 63 63 { 64 64 tfm = crypto_alloc_shash("crc32c", 0, 0); 65 - if (IS_ERR(tfm)) 66 - return PTR_ERR(tfm); 67 - 68 - return 0; 65 + return PTR_ERR_OR_ZERO(tfm); 69 66 } 70 67 71 68 static void __exit libcrc32c_mod_fini(void)