Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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)