summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorweiping zhang <zhangweiping@didichuxing.com>2017-08-18 09:49:30 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-26 00:26:08 +0300
commit5f800c87dadf0857b31ccb6217d6d42d4c1fe157 (patch)
treed37c0899276c3e128d7f018a9c711846b28192f7 /drivers/scsi
parent8978001a3d4f7e8efedd9ff73eff21f8b5dfba65 (diff)
downloadlinux-5f800c87dadf0857b31ccb6217d6d42d4c1fe157.tar.xz
scsi: sd: remove duplicated setting of gd->minors
gd->minors has been set when call alloc_disk() in sd_probe. Signed-off-by: weiping zhang <zhangweiping@didichuxing.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/sd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 7c0f9eb5a5fd..6549e5ce09ca 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -3223,7 +3223,6 @@ static void sd_probe_async(void *data, async_cookie_t cookie)
gd->major = sd_major((index & 0xf0) >> 4);
gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00);
- gd->minors = SD_MINORS;
gd->fops = &sd_fops;
gd->private_data = &sdkp->driver;