aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ips.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r--drivers/scsi/ips.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index e54d30c6a342..b1b229506113 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -2736,8 +2736,6 @@ ips_next(ips_ha_t * ha, int intr)
2736 SC->result = DID_OK; 2736 SC->result = DID_OK;
2737 SC->host_scribble = NULL; 2737 SC->host_scribble = NULL;
2738 2738
2739 memset(SC->sense_buffer, 0, sizeof (SC->sense_buffer));
2740
2741 scb->target_id = SC->device->id; 2739 scb->target_id = SC->device->id;
2742 scb->lun = SC->device->lun; 2740 scb->lun = SC->device->lun;
2743 scb->bus = SC->device->channel; 2741 scb->bus = SC->device->channel;
@@ -3821,7 +3819,6 @@ ips_send_cmd(ips_ha_t * ha, ips_scb_t * scb)
3821 /* attempted, a Check Condition occurred, and Sense */ 3819 /* attempted, a Check Condition occurred, and Sense */
3822 /* Data indicating an Invalid CDB OpCode is returned. */ 3820 /* Data indicating an Invalid CDB OpCode is returned. */
3823 sp = (char *) scb->scsi_cmd->sense_buffer; 3821 sp = (char *) scb->scsi_cmd->sense_buffer;
3824 memset(sp, 0, sizeof (scb->scsi_cmd->sense_buffer));
3825 3822
3826 sp[0] = 0x70; /* Error Code */ 3823 sp[0] = 0x70; /* Error Code */
3827 sp[2] = ILLEGAL_REQUEST; /* Sense Key 5 Illegal Req. */ 3824 sp[2] = ILLEGAL_REQUEST; /* Sense Key 5 Illegal Req. */