mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
parent
4e0c4a47d7
commit
6b6d24b389
1 changed files with 1 additions and 1 deletions
|
@ -2607,9 +2607,9 @@ static int scrub_extent_for_parity(struct scrub_parity *sparity,
|
|||
ret = scrub_pages_for_parity(sparity, logical, l, physical, dev,
|
||||
flags, gen, mirror_num,
|
||||
have_csum ? csum : NULL);
|
||||
skip:
|
||||
if (ret)
|
||||
return ret;
|
||||
skip:
|
||||
len -= l;
|
||||
logical += l;
|
||||
physical += l;
|
||||
|
|
Loading…
Reference in a new issue