]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: btrfs: simplify close_ctree_fs_info()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 25 Dec 2020 12:45:25 +0000 (13:45 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 20 Jan 2021 19:01:45 +0000 (14:01 -0500)
commit3b00a6bafc726a9a9df45346fb734d9ecef7b428
treea3fc49f05cbcff0860cb2c8b7692bdcab1b3b9e8
parent9dba07f14304612ed4ee6d827898aa0cb55d4e26
fs: btrfs: simplify close_ctree_fs_info()

At the beginning of close_ctree_fs_info() the value 0 is assigned to err
and never changed before testing it.

Let's get rid of the superfluous variable.

Fixes: f06bfcf54d0e ("fs: btrfs: Crossport open_ctree_fs_info() from btrfs-progs")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Qu Wenruo <wqu@suse.com>
fs/btrfs/disk-io.c