diff options
Diffstat (limited to 'fs/btrfs/hash.c')
-rw-r--r-- | fs/btrfs/hash.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/hash.c b/fs/btrfs/hash.c index 85889aa82c62..64f15bb30a81 100644 --- a/fs/btrfs/hash.c +++ b/fs/btrfs/hash.c | |||
@@ -20,10 +20,8 @@ static struct crypto_shash *tfm; | |||
20 | int __init btrfs_hash_init(void) | 20 | int __init btrfs_hash_init(void) |
21 | { | 21 | { |
22 | tfm = crypto_alloc_shash("crc32c", 0, 0); | 22 | tfm = crypto_alloc_shash("crc32c", 0, 0); |
23 | if (IS_ERR(tfm)) | ||
24 | return PTR_ERR(tfm); | ||
25 | 23 | ||
26 | return 0; | 24 | return PTR_ERR_OR_ZERO(tfm); |
27 | } | 25 | } |
28 | 26 | ||
29 | void btrfs_hash_exit(void) | 27 | void btrfs_hash_exit(void) |