Commit 519bfc1
scsi: scsi_debug: Drop scsi_debug_bus_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_bus_reset() -> eh_bus_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-7-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent a15df53 commit 519bfc1
1 file changed
Lines changed: 8 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5412 | 5412 | | |
5413 | 5413 | | |
5414 | 5414 | | |
5415 | | - | |
| 5415 | + | |
| 5416 | + | |
5416 | 5417 | | |
5417 | | - | |
5418 | | - | |
5419 | 5418 | | |
5420 | 5419 | | |
5421 | 5420 | | |
5422 | | - | |
5423 | | - | |
5424 | | - | |
| 5421 | + | |
5425 | 5422 | | |
5426 | 5423 | | |
5427 | | - | |
5428 | | - | |
5429 | | - | |
5430 | | - | |
5431 | | - | |
5432 | | - | |
5433 | | - | |
5434 | | - | |
5435 | | - | |
5436 | | - | |
5437 | | - | |
| 5424 | + | |
| 5425 | + | |
| 5426 | + | |
| 5427 | + | |
5438 | 5428 | | |
| 5429 | + | |
5439 | 5430 | | |
5440 | 5431 | | |
5441 | 5432 | | |
5442 | | - | |
5443 | 5433 | | |
5444 | 5434 | | |
5445 | 5435 | | |
| |||
0 commit comments