Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fb18a06 authored by Tobias Klauser's avatar Tobias Klauser Committed by Chris Mason
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 166ae5a4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -717,7 +717,7 @@ static int scrub_fixup_readpage(u64 inum, u64 offset, u64 root, void *fixup_ctx)
out:
	if (page)
		put_page(page);
	if (inode)

	iput(inode);

	if (ret < 0)