Merge branch 'x86-seccomp-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git] / fs / btrfs / hash.c
index 85889aa82c62dd8d05d9c8a01cff08f86afc4d05..64f15bb30a81dbf9ada217d4e0c09cd74fddb197 100644 (file)
@@ -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)