projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29549ae
)
btrfs: use PTR_ERR_OR_ZERO
author
Fabian Frederick
<fabf@skynet.be>
Fri, 4 Jul 2014 19:10:27 +0000
(21:10 +0200)
committer
Chris Mason
<clm@fb.com>
Wed, 17 Sep 2014 20:37:29 +0000
(13:37 -0700)
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>
fs/btrfs/hash.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/hash.c
b/fs/btrfs/hash.c
index
85889aa
..
64f15bb
100644
(file)
--- 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)