projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.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
|
blame
|
history
diff --git
a/fs/btrfs/scrub.c
b/fs/btrfs/scrub.c
index 0be77993378e2b99cf4f44acff6b7dbe36f9d517..bd850b599a99681b3630c02c2691acee3a438467 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;