ata: libata-scsi: Use ata_ncq_supported in ata_scsi_dev_config()
authorDamien Le Moal <dlemoal@kernel.org>
Sun, 4 Jun 2023 23:27:14 +0000 (08:27 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 5 Jun 2023 13:03:28 +0000 (22:03 +0900)
commit43cff7d94370c35ad7d96c9764b3b12f7735e6cc
tree021727c78ead284df41d54b1b48212054482bb29
parent12980c1f2f8a926dd634e27c700014b3246a99ec
ata: libata-scsi: Use ata_ncq_supported in ata_scsi_dev_config()

In ata_scsi_dev_config(), instead of hard-coding the test to check if
an ATA device supports NCQ by looking at the ATA_DFLAG_NCQ flag, use
ata_ncq_supported().

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
drivers/ata/libata-scsi.c