error = btrfs_fill_super(s, fs_devices, data,
flags & MS_SILENT ? 1 : 0);
if (error) {
- free_fs_info(fs_info);
deactivate_locked_super(s);
return ERR_PTR(error);
}
static void btrfs_kill_super(struct super_block *sb)
{
- struct btrfs_fs_info *fs_info = NULL;
- if (sb->s_root)
- fs_info = btrfs_sb(sb)->fs_info;
+ struct btrfs_fs_info *fs_info = btrfs_sb(sb)->fs_info;
kill_anon_super(sb);
- if (fs_info)
- free_fs_info(fs_info);
+ free_fs_info(fs_info);
}
static struct file_system_type btrfs_fs_type = {