diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-11-01 13:26:06 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 15:45:18 +0300 |
commit | 4d5106a126f33395126e042ae42582832bfc39f7 (patch) | |
tree | bdcb2757bb9235e446624fb657c26166cee9eb74 | |
parent | 0b5e3dafb60229dd7225e81023af5d2ddfb6a4b7 (diff) | |
download | linux-4d5106a126f33395126e042ae42582832bfc39f7.tar.xz |
btrfs: remove redundant check of btrfs_iget return value
'btrfs_iget()' can not return NULL, so this test can be removed.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/free-space-cache.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index e690d386ee5e..c698dccb3757 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -75,8 +75,6 @@ static struct inode *__lookup_free_space_inode(struct btrfs_root *root, btrfs_release_path(path); inode = btrfs_iget(root->fs_info->sb, &location, root, NULL); - if (!inode) - return ERR_PTR(-ENOENT); if (IS_ERR(inode)) return inode; if (is_bad_inode(inode)) { |