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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue