]> git.baikalelectronics.ru Git - kernel.git/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)
committerChris Mason <clm@fb.com>
Fri, 2 Jan 2015 19:47:55 +0000 (14:47 -0500)
commitb47fecbeee477edd1fcb1762136a5d35bc57c8c1
tree131d969fab0dc9c1f1452bb853134c411d5cd87b
parent5e0b6d1d4e9e982be142455877a36e3abba7f227
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>
fs/btrfs/scrub.c