mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
ata: libata: Add cpr_log to ata_dev_print_features() early return
ata_dev_print_features() is supposed to return early and not print anything if there are no features supported. However, commitfe22e1c2f7("libata: support concurrent positioning ranges log") added another feature to ata_dev_print_features() without updating the early return conditional. Add the missing feature to the early return conditional. Fixes:fe22e1c2f7("libata: support concurrent positioning ranges log") Signed-off-by: Niklas Cassel <cassel@kernel.org> Tested-by: Wolf <wolf@yoxt.cc> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
This commit is contained in:
parent
ce83767ea3
commit
a6bee5e524
1 changed files with 1 additions and 1 deletions
|
|
@ -2872,7 +2872,7 @@ static void ata_dev_config_lpm(struct ata_device *dev)
|
|||
|
||||
static void ata_dev_print_features(struct ata_device *dev)
|
||||
{
|
||||
if (!(dev->flags & ATA_DFLAG_FEATURES_MASK))
|
||||
if (!(dev->flags & ATA_DFLAG_FEATURES_MASK) && !dev->cpr_log)
|
||||
return;
|
||||
|
||||
ata_dev_info(dev,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue