Commit a15df53
scsi: scsi_debug: Drop scsi_debug_target_reset() NULL pointer checks
The checks for SCSI cmnd, SCSI device, and SCSI host are unnecessary, so
drop them. Likewise, drop the NULL check for sdbg_host.
The only caller is scsi_try_target_reset() -> eh_target_reset_handler(),
and there those pointers cannot be NULL.
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-6-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent a19226f commit a15df53
1 file changed
Lines changed: 10 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5387 | 5387 | | |
5388 | 5388 | | |
5389 | 5389 | | |
5390 | | - | |
| 5390 | + | |
| 5391 | + | |
5391 | 5392 | | |
5392 | | - | |
5393 | | - | |
5394 | 5393 | | |
5395 | 5394 | | |
5396 | 5395 | | |
5397 | | - | |
5398 | | - | |
5399 | | - | |
5400 | | - | |
5401 | | - | |
5402 | 5396 | | |
5403 | 5397 | | |
5404 | | - | |
5405 | | - | |
5406 | | - | |
5407 | | - | |
5408 | | - | |
5409 | | - | |
5410 | | - | |
5411 | | - | |
5412 | | - | |
5413 | | - | |
5414 | | - | |
5415 | | - | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
5416 | 5404 | | |
| 5405 | + | |
5417 | 5406 | | |
5418 | 5407 | | |
5419 | 5408 | | |
5420 | | - | |
| 5409 | + | |
5421 | 5410 | | |
5422 | 5411 | | |
5423 | 5412 | | |
| |||
0 commit comments