summaryrefslogtreecommitdiff
path: root/fs/btrfs/chunk-map.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/chunk-map.c')
-rw-r--r--fs/btrfs/chunk-map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/chunk-map.c b/fs/btrfs/chunk-map.c
index 48407f3331..ce7330b1b7 100644
--- a/fs/btrfs/chunk-map.c
+++ b/fs/btrfs/chunk-map.c
@@ -147,7 +147,7 @@ int btrfs_read_chunk_tree(void)
struct btrfs_path path;
struct btrfs_key key, *found_key;
struct btrfs_chunk *chunk;
- int res;
+ int res = 0;
key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID;
key.type = BTRFS_CHUNK_ITEM_KEY;