aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-03-24 20:26:51 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 13:19:02 -0400
commit526917641aa50eb852591cc3953a92374bedc836 (patch)
tree38d2033ed637a54ff607e4c1adf861fb3b90f44a /drivers/ata
parenta34c4e98367965402134f2e66c3cdc4416f109e4 (diff)
[SCSI] libata: use scsi_build_sense_buffer
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Jeff Garzik <jeff@garzik.org> Cc: Tejun Heo <htejun@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-scsi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 15795394b0a8..6ca8e5dd6eec 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/**