Commit d280a4ef authored by John Garry's avatar John Garry Committed by Martin K. Petersen

scsi: scsi_debug: Stop setting devip->sdbg_host twice

In sdebug_device_create(), the devip->sdbg_host pointer is needlessly set
twice, so stop doing that.
Signed-off-by: default avatarJohn Garry <john.g.garry@oracle.com>
Acked-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
Link: https://lore.kernel.org/r/20230313093114.1498305-3-john.g.garry@oracle.comSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 785d6b7c
...@@ -5155,7 +5155,6 @@ static struct sdebug_dev_info *sdebug_device_create( ...@@ -5155,7 +5155,6 @@ static struct sdebug_dev_info *sdebug_device_create(
} else { } else {
devip->zmodel = BLK_ZONED_NONE; devip->zmodel = BLK_ZONED_NONE;
} }
devip->sdbg_host = sdbg_host;
devip->create_ts = ktime_get_boottime(); devip->create_ts = ktime_get_boottime();
atomic_set(&devip->stopped, (sdeb_tur_ms_to_ready > 0 ? 2 : 0)); atomic_set(&devip->stopped, (sdeb_tur_ms_to_ready > 0 ? 2 : 0));
list_add_tail(&devip->dev_list, &sdbg_host->dev_info_list); list_add_tail(&devip->dev_list, &sdbg_host->dev_info_list);
......
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