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

Commit 4d5106a1 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David Sterba
Browse files

btrfs: remove redundant check of btrfs_iget return value



'btrfs_iget()' can not return NULL, so this test can be removed.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 0b5e3daf
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -75,8 +75,6 @@ static struct inode *__lookup_free_space_inode(struct btrfs_root *root,
	btrfs_release_path(path);
	btrfs_release_path(path);


	inode = btrfs_iget(root->fs_info->sb, &location, root, NULL);
	inode = btrfs_iget(root->fs_info->sb, &location, root, NULL);
	if (!inode)
		return ERR_PTR(-ENOENT);
	if (IS_ERR(inode))
	if (IS_ERR(inode))
		return inode;
		return inode;
	if (is_bad_inode(inode)) {
	if (is_bad_inode(inode)) {