diff options
-rw-r--r-- | drivers/md/md.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 9ab768acfb62..14db6abb2c42 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -7936,9 +7936,9 @@ int md_is_badblock(struct badblocks *bb, sector_t s, int sectors, | |||
7936 | sector_t *first_bad, int *bad_sectors) | 7936 | sector_t *first_bad, int *bad_sectors) |
7937 | { | 7937 | { |
7938 | int hi; | 7938 | int hi; |
7939 | int lo = 0; | 7939 | int lo; |
7940 | u64 *p = bb->page; | 7940 | u64 *p = bb->page; |
7941 | int rv = 0; | 7941 | int rv; |
7942 | sector_t target = s + sectors; | 7942 | sector_t target = s + sectors; |
7943 | unsigned seq; | 7943 | unsigned seq; |
7944 | 7944 | ||
@@ -7953,7 +7953,8 @@ int md_is_badblock(struct badblocks *bb, sector_t s, int sectors, | |||
7953 | 7953 | ||
7954 | retry: | 7954 | retry: |
7955 | seq = read_seqbegin(&bb->lock); | 7955 | seq = read_seqbegin(&bb->lock); |
7956 | 7956 | lo = 0; | |
7957 | rv = 0; | ||
7957 | hi = bb->count; | 7958 | hi = bb->count; |
7958 | 7959 | ||
7959 | /* Binary search between lo and hi for 'target' | 7960 | /* Binary search between lo and hi for 'target' |