]> git.hungrycats.org Git - linux/commit
Btrfs, scrub: uninitialized variable in scrub_extent_for_parity()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 12 Dec 2014 19:30:00 +0000 (22:30 +0300)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Mon, 5 Jan 2015 21:46:09 +0000 (16:46 -0500)
commitdc9835b9a5950826a7f3dec3df89f784ae33f281
treea743f16e27d2872db7ef6dac0da2d8624e4d0418
parent1cf2e2c64bb6cb0567cd295e7a0b2039b8f0f07a
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>
(cherry picked from commit 6b6d24b38991f72fe974215c96e0fdfe409ea50e)
fs/btrfs/scrub.c