diff mbox series

scsi, sr: remove duplicate assignment

Message ID YXgybUhYN+Vrruj8@localhost.localdomain (mailing list archive)
State Accepted
Headers show
Series scsi, sr: remove duplicate assignment | expand

Commit Message

Alexey Dobriyan Oct. 26, 2021, 4:53 p.m. UTC
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/scsi/sr.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Martin K. Petersen Oct. 28, 2021, 3:19 a.m. UTC | #1
Alexey,

Applied to 5.16/scsi-staging, thanks!
diff mbox series

Patch

--- 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;