Commit 6b6d24b3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Chris Mason

Btrfs, scrub: uninitialized variable in scrub_extent_for_parity()

The only way that "ret" is set is when we call scrub_pages_for_parity()
so the skip to "if (ret) " test doesn't make sense and causes a static
checker warning.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 4e0c4a47
...@@ -2607,9 +2607,9 @@ static int scrub_extent_for_parity(struct scrub_parity *sparity, ...@@ -2607,9 +2607,9 @@ static int scrub_extent_for_parity(struct scrub_parity *sparity,
ret = scrub_pages_for_parity(sparity, logical, l, physical, dev, ret = scrub_pages_for_parity(sparity, logical, l, physical, dev,
flags, gen, mirror_num, flags, gen, mirror_num,
have_csum ? csum : NULL); have_csum ? csum : NULL);
skip:
if (ret) if (ret)
return ret; return ret;
skip:
len -= l; len -= l;
logical += l; logical += l;
physical += l; physical += l;
......
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