diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-04-25 14:58:05 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-10 02:20:23 +0200 |
commit | 7fb18a06644a33f0a2eba810d57d4b3b2c982f5b (patch) | |
tree | afe32ce463f6b45cc77783f2f2525aebc5b9d0f8 /fs/btrfs/scrub.c | |
parent | btrfs: fix inline compressed read err corruption (diff) | |
download | linux-7fb18a06644a33f0a2eba810d57d4b3b2c982f5b.tar.xz linux-7fb18a06644a33f0a2eba810d57d4b3b2c982f5b.zip |
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 '')
-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 0be77993378e..bd850b599a99 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; |