[PATCH] drivers/ata: remove flood "Enabling discard_zeroes_data"
From: Konstantin Khlebnikov
Date: Fri Jun 07 2019 - 03:38:47 EST
Printing this at each SCSI READ_CAPACITY command is too verbose.
Flag "discard_zeroes_data" is deprecated since commit 48920ff2a5a9
("block: remove the discard_zeroes_data flag").
Signed-off-by: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxxxxxx>
---
drivers/ata/libata-scsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 391ac0503dc0..a475e94944b7 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -2735,10 +2735,8 @@ static unsigned int ata_scsiop_read_cap(struct ata_scsi_args *args, u8 *rbuf)
rbuf[14] |= 0x80; /* LBPME */
if (ata_id_has_zero_after_trim(args->id) &&
- dev->horkage & ATA_HORKAGE_ZERO_AFTER_TRIM) {
- ata_dev_info(dev, "Enabling discard_zeroes_data\n");
+ dev->horkage & ATA_HORKAGE_ZERO_AFTER_TRIM)
rbuf[14] |= 0x40; /* LBPRZ */
- }
}
if (ata_id_zoned_cap(args->id) ||
args->dev->class == ATA_DEV_ZAC)