aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2015-12-23 13:30:51 -0800
committerChris Mason <clm@fb.com>2015-12-23 13:30:51 -0800
commit140e639f1a3ff052c3921818e2120fdfa4427681 (patch)
tree52856ad4e8eda3041d525b35f2a6225ffa586992
parentf0f76413d332d74446d0ee9535a29a900c4f63e4 (diff)
downloadlinux-btrfs-140e639f1a3ff052c3921818e2120fdfa4427681.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index a37cc0478bb215..a114b7bb87a029 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,
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);