ata: pata_artop: use *switch* in artop_init_one()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Wed, 9 Feb 2022 20:25:34 +0000 (23:25 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 10 Feb 2022 02:55:30 +0000 (11:55 +0900)
commited1d89c188d086adb13d92905fffcd478ac8eeef
treef44a103c69761ec519bd21ee8a28e1dd1051392b
parent581dd420a55d52e6a744d27b4fd4571bce17cf1a
ata: pata_artop: use *switch* in artop_init_one()

This driver uses a string of the *if* statements in artop_init_one()
where the *switch* statement would fit better.  While fixing this,
refactor the 6280 code to e.g. avoid a compound statement inside
the *case* section...

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