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>
Wed, 16 Feb 2022 07:03:24 +0000 (16:03 +0900)
commit5c509618315f975ffa6133a53b197dcb1a46a50b
treec8a0b7346d045bfe9c4a7333a41f330c29e44c9b
parent2c75a451ecb0b3242d1f0c38fdaa4fd43bc89f53
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