From: Tobias Klauser Date: Fri, 25 Apr 2014 12:58:05 +0000 (+0200) Subject: btrfs: Remove unnecessary check for NULL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7fb18a06644a33f0a2eba810d57d4b3b2c982f5b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Chris Mason --- 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;