summaryrefslogtreecommitdiff
path: root/drivers/ata/sata_promise.c
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@wdc.com>2022-10-07 16:23:38 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-10-18 07:53:27 +0300
commit4cb7c6f1ef9642cd2c8580b495fde47ffbaddef7 (patch)
tree86895369e211cbf8def44a05346e994adfe1d43d /drivers/ata/sata_promise.c
parentfddb1a6424787d8089a9032bd5d21c428670f854 (diff)
downloadlinux-4cb7c6f1ef9642cd2c8580b495fde47ffbaddef7.tar.xz
ata: make use of ata_port_is_frozen() helper
Clean up the code by making use of the newly introduced ata_port_is_frozen() helper function. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r--drivers/ata/sata_promise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c
index b8465fef2ed2..9cd7d8b71361 100644
--- a/drivers/ata/sata_promise.c
+++ b/drivers/ata/sata_promise.c
@@ -817,7 +817,7 @@ static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class,
static void pdc_error_handler(struct ata_port *ap)
{
- if (!(ap->pflags & ATA_PFLAG_FROZEN))
+ if (!ata_port_is_frozen(ap))
pdc_reset_port(ap);
ata_sff_error_handler(ap);