ata: libata-sff: refactor ata_sff_altstatus()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sun, 13 Feb 2022 15:10:32 +0000 (18:10 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 16 Feb 2022 07:02:35 +0000 (16:02 +0900)
commit2c75a451ecb0b3242d1f0c38fdaa4fd43bc89f53
tree4c49881097cf00e4310a3ac5f16ef2c800a357a1
parent93fd9ffb29cfb38ca1d2755a0c73d27cef24d6e2
ata: libata-sff: refactor ata_sff_altstatus()

The driver's calls to ata_sff_altstatus() are mostly surrounded by some
clumsy checks.  Refactor ata_sff_altstatus() to include the repetitive
checks and return a 'bool' result indicating if the alternate
status register exists or not.

While at it, further update the 'kernel-doc' comment -- the alternate
status register has never been a part of the taskfile, despite what
Jeff and co. think! :-)

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