summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-multipath.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-27 17:59:06 +0200
committerShaohua Li <shli@fb.com>2017-11-02 05:32:24 +0100
commitfc33060ba0c78310f6398357ffca8f55a4c41cee (patch)
tree94348c93acb37125fd7ab4e4c9c6b79cbfad6229 /drivers/md/md-multipath.c
parentraid1: remove obsolete code in raid1_write_request (diff)
downloadlinux-fc33060ba0c78310f6398357ffca8f55a4c41cee.tar.xz
linux-fc33060ba0c78310f6398357ffca8f55a4c41cee.zip
md: remove redundant variable q
The pointer q is assigned but never read; it is redundant and can be removed. Cleans up clang warning: drivers/md/md-multipath.c:260:4: warning: Value stored to 'q' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md-multipath.c')
-rw-r--r--drivers/md/md-multipath.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/md-multipath.c b/drivers/md/md-multipath.c
index 5c70176fa24d..e40065bdbfc8 100644
--- a/drivers/md/md-multipath.c
+++ b/drivers/md/md-multipath.c
@@ -243,7 +243,6 @@ static void print_multipath_conf (struct mpconf *conf)
static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev)
{
struct mpconf *conf = mddev->private;
- struct request_queue *q;
int err = -EEXIST;
int path;
struct multipath_info *p;
@@ -257,7 +256,6 @@ static int multipath_add_disk(struct mddev *mddev, struct md_rdev *rdev)
for (path = first; path <= last; path++)
if ((p=conf->multipaths+path)->rdev == NULL) {
- q = rdev->bdev->bd_disk->queue;
disk_stack_limits(mddev->gendisk, rdev->bdev,
rdev->data_offset << 9);