ata: libata-scsi: use *switch* statements to check SCSI command codes
authorSergey Shtylyov <s.shtylyov@omp.ru>
Mon, 14 Feb 2022 20:14:54 +0000 (23:14 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sun, 20 Feb 2022 00:06:05 +0000 (09:06 +0900)
commit59b0040475ee5d562f061eef718b808fbec8a13a
treec3fdf769689d3cf65a375b0ed7940435df52c19a
parent03c0e84f9c1e166d57d06b04497e11205f48e9a8
ata: libata-scsi: use *switch* statements to check SCSI command codes

Replace strings of the *if* statements checking the SCSI command code
with the *switch* statements that fit better here...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-scsi.c