commit | 7fb18a06644a33f0a2eba810d57d4b3b2c982f5b | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Fri Apr 25 14:58:05 2014 +0200 |
committer | Chris Mason <clm@fb.com> | Mon Jun 09 17:20:23 2014 -0700 |
tree | afe32ce463f6b45cc77783f2f2525aebc5b9d0f8 | |
parent | 166ae5a418756dacd2e8883c6f562c2d0ce2db2d [diff] [blame] |
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>
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 0be7799..bd850b5 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c
@@ -717,8 +717,8 @@ out: if (page) put_page(page); - if (inode) - iput(inode); + + iput(inode); if (ret < 0) return ret;