scsi: core: Introduce scsi_cmd_list_info()
authorBart Van Assche <bvanassche@acm.org>
Mon, 25 Mar 2024 22:47:53 +0000 (15:47 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Apr 2024 02:12:33 +0000 (22:12 -0400)
commit9972c02a806772f61ff0da7c3740be4ef0600553
tree603573d218f9bd56768039ef44506837497e13ef
parent4cece764965020c22cff7665b18a012006359095
scsi: core: Introduce scsi_cmd_list_info()

Slightly improve code readability by introducing a helper function for
deriving the list information and by using guard() + return instead of
goto + explicit unlock + return.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240325224755.1477910-2-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debugfs.c