From: FUJITA Tomonori Date: Tue, 25 Mar 2008 00:26:53 +0000 (+0900) Subject: [SCSI] ps3rom: use scsi_build_sense_buffer X-Git-Tag: v2.6.26-rc1~1140^2~83 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53df8ba801b835ebbd116b4585adfe7ce4efd2b3;p=linux-2.6 [SCSI] ps3rom: use scsi_build_sense_buffer Signed-off-by: FUJITA Tomonori Acked-by: Geert Uytterhoeven Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index d1e7845e11..ce48e2d019 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -330,11 +331,7 @@ static irqreturn_t ps3rom_interrupt(int irq, void *data) goto done; } - cmd->sense_buffer[0] = 0x70; - cmd->sense_buffer[2] = sense_key; - cmd->sense_buffer[7] = 16 - 6; - cmd->sense_buffer[12] = asc; - cmd->sense_buffer[13] = ascq; + scsi_build_sense_buffer(0, cmd->sense_buffer, sense_key, asc, ascq); cmd->result = SAM_STAT_CHECK_CONDITION; done: