scsi: scsi_debug: Rework subpage code error handling
authorBart Van Assche <bvanassche@acm.org>
Tue, 30 Jan 2024 21:48:41 +0000 (13:48 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 27 Feb 2024 02:37:26 +0000 (21:37 -0500)
commitf19c3e4fe2542d7b145d294386666958c9fabe17
treee006130302c6d0fd95c64406715afc524c31ee3a
parentb2f860903fe9774f755a917edc674ba6e879fa55
scsi: scsi_debug: Rework subpage code error handling

Move the subpage code checks into the switch statement to make it easier
to add support for new page code / subpage code combinations.

Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240130214911.1863909-16-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c