From: FUJITA Tomonori Date: Tue, 25 Mar 2008 00:26:51 +0000 (+0900) Subject: [SCSI] libata: use scsi_build_sense_buffer X-Git-Tag: v2.6.26-rc1~1140^2~85 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=526917641aa50eb852591cc3953a92374bedc836;p=linux-2.6-omap-h63xx.git [SCSI] libata: use scsi_build_sense_buffer Signed-off-by: FUJITA Tomonori Cc: Jeff Garzik Cc: Tejun Heo Signed-off-by: James Bottomley --- diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 15795394b0a..6ca8e5dd6ee 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) { cmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION; - cmd->sense_buffer[0] = 0x70; /* fixed format, current */ - cmd->sense_buffer[2] = sk; - cmd->sense_buffer[7] = 18 - 8; /* additional sense length */ - cmd->sense_buffer[12] = asc; - cmd->sense_buffer[13] = ascq; + scsi_build_sense_buffer(0, cmd->sense_buffer, sk, asc, ascq); } /**