summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorLidong Zhong <lidong.zhong@suse.com>2017-04-21 15:21:38 +0800
committerShaohua Li <shli@fb.com>2017-04-23 16:59:13 -0700
commit296617581eac713b3fda588216ae6d16d1e76dd5 (patch)
treed0af828c0464642ef1f2978a355f56807f77f169 /drivers/md/raid1.c
parent97b20ef784388753becb41b27876a048e905fe9b (diff)
downloadlinux-296617581eac713b3fda588216ae6d16d1e76dd5.tar.bz2
md/raid1/10: remove unused queue
A queue is declared and get from the disk of the array, but it's not used anywhere. So removing it from the source. Signed-off-by: Lidong Zhong <lzhong@suse.com> Acted-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 57611f43ed6c..14a9d36b25b8 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -2961,7 +2961,6 @@ static struct r1conf *setup_conf(struct mddev *mddev)
err = -EINVAL;
spin_lock_init(&conf->device_lock);
rdev_for_each(rdev, mddev) {
- struct request_queue *q;
int disk_idx = rdev->raid_disk;
if (disk_idx >= mddev->raid_disks
|| disk_idx < 0)
@@ -2974,8 +2973,6 @@ static struct r1conf *setup_conf(struct mddev *mddev)
if (disk->rdev)
goto abort;
disk->rdev = rdev;
- q = bdev_get_queue(rdev->bdev);
-
disk->head_position = 0;
disk->seq_start = MaxSector;
}