]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove redundant variable from btrfs_cross_ref_exist
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 30 Aug 2018 01:59:16 +0000 (10:59 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:29 +0000 (17:23 +0200)
commit1b756532e8915691a99f79fc4312523afcbc53a0
tree14faf5bdb339dc3283d7de040ac14ca106ce9d55
parent145198c1fbe2ad5ac32e8e00a7ba4a75f88f2365
btrfs: remove redundant variable from btrfs_cross_ref_exist

Since commit 6e269b753697 ("Btrfs attach delayed ref updates to delayed
ref heads"), check_delayed_ref() won't return -ENOENT.

In btrfs_cross_ref_exist(), two variables 'ret' and 'ret2' are
originally used to handle -ENOENT error case.  Since the code is not
needed anymore, let's just remove 'ret2'.

Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c