summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2017-06-15 17:00:25 +0800
committerShaohua Li <shli@fb.com>2017-06-16 12:04:09 -0700
commit037d2ff62cbfd3adf634553fbc25c9af7c25a702 (patch)
tree2218be2af6652cdf82f2995894e6034d1f18d20a /drivers/md
parent1cdd1257949c85c5ddff8313fe3b1e39c5bee8b8 (diff)
downloadlinux-037d2ff62cbfd3adf634553fbc25c9af7c25a702.tar.bz2
md/raid1: remove unused bio in sync_request_write
The "bio" is not used in sync_request_write after commit a68e58703575 ("md/raid1: split out two sub-functions from sync_request_write"). Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid1.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 7866563338fa..659e1ab922b1 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -2171,9 +2171,7 @@ static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio)
struct r1conf *conf = mddev->private;
int i;
int disks = conf->raid_disks * 2;
- struct bio *bio, *wbio;
-
- bio = r1_bio->bios[r1_bio->read_disk];
+ struct bio *wbio;
if (!test_bit(R1BIO_Uptodate, &r1_bio->state))
/* ouch - failed to read all of that. */