Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

btrfs: remove pointless error check in btrfs_check_dir_item_collision()

We're under the IS_ERR() branch so we know that 'ret', which got assigned
the value of PTR_ERR(di) is always negative, so there's no point in
checking if it's negative.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Filipe Manana and committed by
David Sterba
45cc960f 01cebce7

+1 -3
+1 -3
fs/btrfs/dir-item.c
··· 253 253 /* Nothing found, we're safe */ 254 254 if (ret == -ENOENT) 255 255 return 0; 256 - 257 - if (ret < 0) 258 - return ret; 256 + return ret; 259 257 } 260 258 261 259 /* we found an item, look for our name in the item */