summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2015-12-23 21:30:51 (GMT)
committerChris Mason <clm@fb.com>2015-12-23 21:30:51 (GMT)
commit140e639f1a3ff052c3921818e2120fdfa4427681 (patch)
tree52856ad4e8eda3041d525b35f2a6225ffa586992 /fs/btrfs
parentf0f76413d332d74446d0ee9535a29a900c4f63e4 (diff)
downloadlinux-140e639f1a3ff052c3921818e2120fdfa4427681.tar.xz
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>
Diffstat (limited to 'fs/btrfs')
-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 a37cc04..a114b7b 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);