Commit 07c9a8e0 authored by Dan Carpenter's avatar Dan Carpenter Committed by David Sterba

btrfs: scrub: silence an uninitialized variable warning

It's basically harmless if "ref_level" isn't initialized since it's only
used for an error message, but it causes a static checker warning.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent ebb8765b
...@@ -611,7 +611,7 @@ static void scrub_print_warning(const char *errstr, struct scrub_block *sblock) ...@@ -611,7 +611,7 @@ static void scrub_print_warning(const char *errstr, struct scrub_block *sblock)
u64 flags = 0; u64 flags = 0;
u64 ref_root; u64 ref_root;
u32 item_size; u32 item_size;
u8 ref_level; u8 ref_level = 0;
int ret; int ret;
WARN_ON(sblock->page_count < 1); WARN_ON(sblock->page_count < 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment