Skip to contentSkip to conversation

libata: Remove FIXME comment in atapi_request_sense()

PATCH New Tejun Heo 1 participant 1 message Dec 4, 2014 1 message not in the archive libata

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tejun Heo

author
#1 lore raw

PATCH 1/1 libata: Remove FIXME comment in atapi_request_sense()

Quoted 1 line

From 2ba520f0cd65c2e688f8beb495bb6634a61ee17b Mon Sep 17 00:00:00 2001

From: Nicholas Krause <[email protected]>
Date: Tue, 2 Dec 2014 17:09:02 -0500

Remove the FIXME comment in atapi_request_sense() asking whether memset of sense buffer is necessary. The buffer may be partially or fully filled by the device. We want it to be cleared.

tj: Updated description.

---
Applied to libata/for-3.19 with updated description.

Thanks.

 drivers/ata/libata-scsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/ata/libata-scsi.c +0 -1
index 1db6eab..6a5fcf1 100644
@@ -2595,7 +2595,6 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
 
 	DPRINTK("ATAPI request sense\n");
 
-	/* FIXME: is this needed? */
 	memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
 
 #ifdef CONFIG_ATA_SFF
Signature · 1 line
2.1.0