aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorJohn Garry <[email protected]>2023-03-13 09:31:06 +0000
committerMartin K. Petersen <[email protected]>2023-03-16 23:25:36 -0400
commit06be9fbebb1beb6a885c95fbe3bb2f05f3463a70 (patch)
tree56f03d4da70228acb61be9c582bbeacadfd120b4 /drivers/usb/cdns3/cdns3-debug.h
parentd280a4ef229c0def06f6641183fb92100b410c63 (diff)
scsi: scsi_debug: Drop scsi_debug_abort() NULL pointer checks
The SCSI cmnd pointer arg would never be NULL, so drop the check. In addition, its SCSI device pointer would never be NULL. The only caller is scsi_send_eh_cmnd() -> scsi_abort_eh_cmnd() -> scsi_try_to_abort_cmd() -> scsi_try_to_abort_cmd(), and in the origin of that chain those pointers cannot be NULL. Signed-off-by: John Garry <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions