]> git.baikalelectronics.ru Git - uboot.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)
commita704039b70566844db5e603d37d5ec7a75dda3a3
treea3fc49f05cbcff0860cb2c8b7692bdcab1b3b9e8
parentecbd59bf4f899de92daf98c810cf27ddb81ea712
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: dec23afaf14e ("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