ata: libata-sff: use *switch* statement in ata_sff_dev_classify()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Thu, 17 Feb 2022 15:38:29 +0000 (18:38 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sun, 20 Feb 2022 00:06:05 +0000 (09:06 +0900)
commitffa92a7457555df6871cfb15c2fb3afcb02c4d2b
tree73ad158537e33cfa7d9707983b95a2990cf7be3b
parentefcef265fd83d9a68a68926abecb3e1dd3e260a8
ata: libata-sff: use *switch* statement in ata_sff_dev_classify()

In ata_sff_dev_classify(), replace a string of the *if* statements checking
the device's class with the *switch* statement that fits better here...

While at it, fix the multi-line comment style in the vicinity...

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