forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
bf4d064d89
commit
f8eaf298c8
|
@ -62,10 +62,7 @@ EXPORT_SYMBOL(crc32c);
|
|||
static int __init libcrc32c_mod_init(void)
|
||||
{
|
||||
tfm = crypto_alloc_shash("crc32c", 0, 0);
|
||||
if (IS_ERR(tfm))
|
||||
return PTR_ERR(tfm);
|
||||
|
||||
return 0;
|
||||
return PTR_ERR_OR_ZERO(tfm);
|
||||
}
|
||||
|
||||
static void __exit libcrc32c_mod_fini(void)
|
||||
|
|
Loading…
Reference in New Issue
Block a user