diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-07-04 21:10:27 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 13:37:29 -0700 |
commit | 6f84e23646704c93fa878c5b87a4990be8d1ca9c (patch) | |
tree | 75b148d7b400be504701b84f46019191eebabb46 /fs/btrfs/hash.c | |
parent | 29549aec76bd6f1fc8e1723ed5396d65073d6521 (diff) | |
download | linux-6f84e23646704c93fa878c5b87a4990be8d1ca9c.tar.gz linux-6f84e23646704c93fa878c5b87a4990be8d1ca9c.tar.bz2 linux-6f84e23646704c93fa878c5b87a4990be8d1ca9c.zip |
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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Chris Mason <clm@fb.com>
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; 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) |