diff options
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r-- | drivers/scsi/sr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index d8d12a1718bf..328837b7ccb9 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c | |||
@@ -573,8 +573,6 @@ static int sr_probe(struct device *dev) | |||
573 | get_capabilities(cd); | 573 | get_capabilities(cd); |
574 | sr_vendor_init(cd); | 574 | sr_vendor_init(cd); |
575 | 575 | ||
576 | snprintf(disk->devfs_name, sizeof(disk->devfs_name), | ||
577 | "%s/cd", sdev->devfs_name); | ||
578 | disk->driverfs_dev = &sdev->sdev_gendev; | 576 | disk->driverfs_dev = &sdev->sdev_gendev; |
579 | set_capacity(disk, cd->capacity); | 577 | set_capacity(disk, cd->capacity); |
580 | disk->private_data = &cd->driver; | 578 | disk->private_data = &cd->driver; |