diff options
author | Sergey Shtylyov <[email protected]> | 2022-02-13 18:10:31 +0300 |
---|---|---|
committer | Damien Le Moal <[email protected]> | 2022-02-19 11:18:49 +0900 |
commit | 4fc5f0aa9712418dcb12c446a904a359e5568659 (patch) | |
tree | 7b88a031f50deff70ecae71de1a0e25ddc686e19 /net/lapb/lapb_subr.c | |
parent | b51aa532e105722d0dfb21718f0b32780c9e8e8d (diff) |
ata: libata-sff: refactor ata_sff_set_devctl()
Commit 41dec29bcb05 ("libata: introduce sff_set_devctl() method") left some
clumsy checks surrounding calls to ata_sff_set_devctl() which Jeff Garzik
suggested to factor out... and I never followed up. :-(
At last, refactor ata_sff_set_devctl() to include the repetitive checks and
return a 'bool' result indicating if the device control register exists or
not.
While at it, further update the 'kernel-doc' comment -- the device control
register has never been a part of the taskfile, despite what Jeff and co.
think! :-)
Signed-off-by: Sergey Shtylyov <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions