diff options
author | Chris Mason <clm@fb.com> | 2015-12-23 16:30:51 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-12-23 16:30:51 -0500 |
commit | 140e639f1a3ff052c3921818e2120fdfa4427681 (patch) | |
tree | 52856ad4e8eda3041d525b35f2a6225ffa586992 | |
parent | f0f76413d332d74446d0ee9535a29a900c4f63e4 (diff) |
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: Chris Mason <clm@fb.com>
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index a37cc0478bb2..a114b7bb87a0 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -4794,7 +4794,7 @@ int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans, | |||
4794 | u64 dev_offset; | 4794 | u64 dev_offset; |
4795 | u64 stripe_size; | 4795 | u64 stripe_size; |
4796 | int i = 0; | 4796 | int i = 0; |
4797 | int ret; | 4797 | int ret = 0; |
4798 | 4798 | ||
4799 | em_tree = &extent_root->fs_info->mapping_tree.map_tree; | 4799 | em_tree = &extent_root->fs_info->mapping_tree.map_tree; |
4800 | read_lock(&em_tree->lock); | 4800 | read_lock(&em_tree->lock); |