diff options
Diffstat (limited to 'drivers/scsi/arcmsr/arcmsr_hba.c')
-rw-r--r-- | drivers/scsi/arcmsr/arcmsr_hba.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 3d53d636b17b..f0cfb0451757 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c | |||
@@ -2636,18 +2636,9 @@ static int arcmsr_queue_command_lck(struct scsi_cmnd *cmd, | |||
2636 | struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; | 2636 | struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; |
2637 | struct CommandControlBlock *ccb; | 2637 | struct CommandControlBlock *ccb; |
2638 | int target = cmd->device->id; | 2638 | int target = cmd->device->id; |
2639 | int lun = cmd->device->lun; | ||
2640 | uint8_t scsicmd = cmd->cmnd[0]; | ||
2641 | cmd->scsi_done = done; | 2639 | cmd->scsi_done = done; |
2642 | cmd->host_scribble = NULL; | 2640 | cmd->host_scribble = NULL; |
2643 | cmd->result = 0; | 2641 | cmd->result = 0; |
2644 | if ((scsicmd == SYNCHRONIZE_CACHE) ||(scsicmd == SEND_DIAGNOSTIC)){ | ||
2645 | if(acb->devstate[target][lun] == ARECA_RAID_GONE) { | ||
2646 | cmd->result = (DID_NO_CONNECT << 16); | ||
2647 | } | ||
2648 | cmd->scsi_done(cmd); | ||
2649 | return 0; | ||
2650 | } | ||
2651 | if (target == 16) { | 2642 | if (target == 16) { |
2652 | /* virtual device for iop message transfer */ | 2643 | /* virtual device for iop message transfer */ |
2653 | arcmsr_handle_virtual_command(acb, cmd); | 2644 | arcmsr_handle_virtual_command(acb, cmd); |