projects
/
profile
/
common
/
platform
/
kernel
/
linux-artik7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166ae5a
)
btrfs: Remove unnecessary check for NULL
author
Tobias Klauser
<tklauser@distanz.ch>
Fri, 25 Apr 2014 12:58:05 +0000
(14:58 +0200)
committer
Chris Mason
<clm@fb.com>
Tue, 10 Jun 2014 00:20:23 +0000
(17:20 -0700)
iput() already checks for the inode being NULL, thus it's unnecessary to
check before calling.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/scrub.c
b/fs/btrfs/scrub.c
index
0be7799
..
bd850b5
100644
(file)
--- a/
fs/btrfs/scrub.c
+++ b/
fs/btrfs/scrub.c
@@
-717,8
+717,8
@@
static int scrub_fixup_readpage(u64 inum, u64 offset, u64 root, void *fixup_ctx)
out:
if (page)
put_page(page);
- if (inode)
-
iput(inode);
+
+ iput(inode);
if (ret < 0)
return ret;