Skip to content

Commit

Permalink
btrfs: Remove unnecessary check for NULL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Chris Mason committed Jun 10, 2014
1 parent 166ae5a commit 7fb18a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/scrub.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 7fb18a0

Please sign in to comment.