diff options
author | Niklas Cassel <niklas.cassel@wdc.com> | 2022-10-07 16:23:38 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-18 07:53:27 +0300 |
commit | 4cb7c6f1ef9642cd2c8580b495fde47ffbaddef7 (patch) | |
tree | 86895369e211cbf8def44a05346e994adfe1d43d /drivers/ata/libata-scsi.c | |
parent | fddb1a6424787d8089a9032bd5d21c428670f854 (diff) | |
download | linux-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/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 1287386fd029..4cb914103382 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -658,7 +658,7 @@ static struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev, struct ata_queued_cmd *qc; int tag; - if (unlikely(ap->pflags & ATA_PFLAG_FROZEN)) + if (unlikely(ata_port_is_frozen(ap))) goto fail; if (ap->flags & ATA_FLAG_SAS_HOST) { |