scsi: scsi_debug: Stop setting devip->sdbg_host twice
authorJohn Garry <john.g.garry@oracle.com>
Mon, 13 Mar 2023 09:31:05 +0000 (09:31 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Mar 2023 03:25:36 +0000 (23:25 -0400)
In sdebug_device_create(), the devip->sdbg_host pointer is needlessly set
twice, so stop doing that.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Link: https://lore.kernel.org/r/20230313093114.1498305-3-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c

index 309a0c8..883c587 100644 (file)
@@ -5155,7 +5155,6 @@ static struct sdebug_dev_info *sdebug_device_create(
                } else {
                        devip->zmodel = BLK_ZONED_NONE;
                }
-               devip->sdbg_host = sdbg_host;
                devip->create_ts = ktime_get_boottime();
                atomic_set(&devip->stopped, (sdeb_tur_ms_to_ready > 0 ? 2 : 0));
                list_add_tail(&devip->dev_list, &sdbg_host->dev_info_list);