summaryrefslogtreecommitdiff
path: root/drivers/scsi/sr.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2021-10-26 19:53:01 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-27 23:12:46 -0400
commita1efc896cb8a2831de3cf5a9747e030b494f1a26 (patch)
tree13f255926b885167d59b68c3f137349d1e77dd6c /drivers/scsi/sr.c
parentbe39f4fd8dd430053304b2ff6db712c0b3168e7f (diff)
scsi: sr: Remove duplicate assignment
Link: https://lore.kernel.org/r/YXgybUhYN+Vrruj8@localhost.localdomain Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r--drivers/scsi/sr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
index d769057b25a0..e2bb7f790057 100644
--- a/drivers/scsi/sr.c
+++ b/drivers/scsi/sr.c
@@ -692,7 +692,6 @@ static int sr_probe(struct device *dev)
cd->device = sdev;
cd->disk = disk;
cd->driver = &sr_template;
- cd->disk = disk;
cd->capacity = 0x1fffff;
cd->device->changed = 1; /* force recheck CD type */
cd->media_present = 1;