diff options
author | NeilBrown <neilb@suse.de> | 2011-05-11 00:54:32 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-05-11 00:54:32 -0400 |
commit | f17ed07c853d5d772515f565a7fc68f9098d6d69 (patch) | |
tree | 1dd382524ef7d0d3c47c238a0042d0aa7dd386c8 /drivers | |
parent | a8830bcaf3206f15e29efcd9e04becd96a0722e9 (diff) |
md/raid10: remove unused variable.
This variable 'disk' is never used - how odd.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid10.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 80cc7e63cdb7..f44a3da5a80d 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1742,7 +1742,6 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i | |||
1742 | r10bio_t *r10_bio; | 1742 | r10bio_t *r10_bio; |
1743 | struct bio *biolist = NULL, *bio; | 1743 | struct bio *biolist = NULL, *bio; |
1744 | sector_t max_sector, nr_sectors; | 1744 | sector_t max_sector, nr_sectors; |
1745 | int disk; | ||
1746 | int i; | 1745 | int i; |
1747 | int max_sync; | 1746 | int max_sync; |
1748 | sector_t sync_blocks; | 1747 | sector_t sync_blocks; |
@@ -2020,7 +2019,6 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i | |||
2020 | do { | 2019 | do { |
2021 | struct page *page; | 2020 | struct page *page; |
2022 | int len = PAGE_SIZE; | 2021 | int len = PAGE_SIZE; |
2023 | disk = 0; | ||
2024 | if (sector_nr + (len>>9) > max_sector) | 2022 | if (sector_nr + (len>>9) > max_sector) |
2025 | len = (max_sector - sector_nr) << 9; | 2023 | len = (max_sector - sector_nr) << 9; |
2026 | if (len == 0) | 2024 | if (len == 0) |
@@ -2039,7 +2037,6 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i | |||
2039 | } | 2037 | } |
2040 | goto bio_full; | 2038 | goto bio_full; |
2041 | } | 2039 | } |
2042 | disk = i; | ||
2043 | } | 2040 | } |
2044 | nr_sectors += len>>9; | 2041 | nr_sectors += len>>9; |
2045 | sector_nr += len>>9; | 2042 | sector_nr += len>>9; |