diff options
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index c16e3cea1d28..f3c69a8c1103 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -2332,11 +2332,7 @@ void ata_scsi_set_sense(struct scsi_cmnd *cmd, u8 sk, u8 asc, u8 ascq) | |||
2332 | { | 2332 | { |
2333 | cmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION; | 2333 | cmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION; |
2334 | 2334 | ||
2335 | cmd->sense_buffer[0] = 0x70; /* fixed format, current */ | 2335 | scsi_build_sense_buffer(0, cmd->sense_buffer, sk, asc, ascq); |
2336 | cmd->sense_buffer[2] = sk; | ||
2337 | cmd->sense_buffer[7] = 18 - 8; /* additional sense length */ | ||
2338 | cmd->sense_buffer[12] = asc; | ||
2339 | cmd->sense_buffer[13] = ascq; | ||
2340 | } | 2336 | } |
2341 | 2337 | ||
2342 | /** | 2338 | /** |