xfs: remove a superfluous s_fs_info NULL check in xfs_fs_put_super
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Aug 2023 22:05:34 +0000 (15:05 -0700)
committerChristian Brauner <brauner@kernel.org>
Thu, 10 Aug 2023 08:34:54 +0000 (10:34 +0200)
commit1aa2d074d4c777e2150382878d0a5611d829b380
tree6cc296c6941421ac673f8315bd4b17d73ff91b54
parentdbbff489064d89391c4f0c7a73e77e61ce29fe96
xfs: remove a superfluous s_fs_info NULL check in xfs_fs_put_super

->put_super is only called when sb->s_root is set, and thus when
fill_super succeeds.  Thus drop the NULL check that can't happen in
xfs_fs_put_super.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Message-Id: <20230809220545.1308228-3-hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/xfs/xfs_super.c