diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-04-25 14:58:05 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-09 17:20:23 -0700 |
commit | 7fb18a06644a33f0a2eba810d57d4b3b2c982f5b (patch) | |
tree | afe32ce463f6b45cc77783f2f2525aebc5b9d0f8 /fs/btrfs/scrub.c | |
parent | 166ae5a418756dacd2e8883c6f562c2d0ce2db2d (diff) |
btrfs: Remove unnecessary check for NULL
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>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 0be77993378..bd850b599a9 100644 --- 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; |