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

Commit 6f84e236 authored by Fabian Frederick's avatar Fabian Frederick Committed by Chris Mason
Browse files

btrfs: use PTR_ERR_OR_ZERO



replace IS_ERR/PTR_ERR

Cc: Chris Mason <clm@fb.com>
Cc: Josef Bacik <jbacik@fb.com>
Cc: linux-btrfs@vger.kernel.org
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 29549aec
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -20,10 +20,8 @@ static struct crypto_shash *tfm;
int __init btrfs_hash_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);
}

void btrfs_hash_exit(void)