]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
btrfs: Remove unnecessary check for NULL
authorTobias Klauser <tklauser@distanz.ch>
Fri, 25 Apr 2014 12:58:05 +0000 (14:58 +0200)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:23 +0000 (17:20 -0700)
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>
fs/btrfs/scrub.c

index 0be77993378e2b99cf4f44acff6b7dbe36f9d517..bd850b599a99681b3630c02c2691acee3a438467 100644 (file)
@@ -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;