2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 02:34:01 +08:00

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>
This commit is contained in:
Tobias Klauser 2014-04-25 14:58:05 +02:00 committed by Chris Mason
parent 166ae5a418
commit 7fb18a0664

View 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;