File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -926,11 +926,8 @@ static void ata_gen_passthru_sense(struct ata_queued_cmd *qc)
926
926
{
927
927
struct scsi_cmnd * cmd = qc -> scsicmd ;
928
928
struct ata_taskfile * tf = & qc -> result_tf ;
929
- unsigned char * sb = cmd -> sense_buffer ;
930
929
u8 sense_key , asc , ascq ;
931
930
932
- memset (sb , 0 , SCSI_SENSE_BUFFERSIZE );
933
-
934
931
/*
935
932
* Use ata_to_sense_error() to map status register bits
936
933
* onto sense key, asc & ascq.
@@ -965,8 +962,6 @@ static void ata_gen_ata_sense(struct ata_queued_cmd *qc)
965
962
u64 block ;
966
963
u8 sense_key , asc , ascq ;
967
964
968
- memset (sb , 0 , SCSI_SENSE_BUFFERSIZE );
969
-
970
965
if (ata_dev_disabled (dev )) {
971
966
/* Device disabled after error recovery */
972
967
/* LOGICAL UNIT NOT READY, HARD RESET REQUIRED */
You can’t perform that action at this time.
0 commit comments