]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Sat, 19 Feb 2022 02:18:42 +0000 (11:18 +0900)
commit2c26d6530cb137bb1e9dfbe588900f8d2d021f5d
treef44a103c69761ec519bd21ee8a28e1dd1051392b
parentd9c10c49a6284c60c82ecc160a6490d5464335fd
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