Commit 5f800c87 authored by weiping zhang's avatar weiping zhang Committed by Martin K. Petersen

scsi: sd: remove duplicated setting of gd->minors

gd->minors has been set when call alloc_disk() in sd_probe.
Signed-off-by: default avatarweiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 8978001a
...@@ -3223,7 +3223,6 @@ static void sd_probe_async(void *data, async_cookie_t cookie) ...@@ -3223,7 +3223,6 @@ static void sd_probe_async(void *data, async_cookie_t cookie)
gd->major = sd_major((index & 0xf0) >> 4); gd->major = sd_major((index & 0xf0) >> 4);
gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00); gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00);
gd->minors = SD_MINORS;
gd->fops = &sd_fops; gd->fops = &sd_fops;
gd->private_data = &sdkp->driver; gd->private_data = &sdkp->driver;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment