Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 140e639f authored by Chris Mason's avatar Chris Mason
Browse files

btrfs: fix warning on uninit variable in btrfs_finish_chunk_alloc



map->num_stripes really can't be zero, but just in case.

Signed-off-by: default avatarChris Mason <clm@fb.com>
parent f0f76413
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4794,7 +4794,7 @@ int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans,
	u64 dev_offset;
	u64 stripe_size;
	int i = 0;
	int ret;
	int ret = 0;

	em_tree = &extent_root->fs_info->mapping_tree.map_tree;
	read_lock(&em_tree->lock);