|
|
@@ -2951,7 +2951,6 @@ static int srp_reset_device(struct scsi_cmnd *scmnd)
|
|
|
{
|
|
|
struct srp_target_port *target = host_to_target(scmnd->device->host);
|
|
|
struct srp_rdma_ch *ch;
|
|
|
- int i, j;
|
|
|
u8 status;
|
|
|
|
|
|
shost_printk(KERN_ERR, target->scsi_host, "SRP reset_device called\n");
|
|
|
@@ -2963,15 +2962,6 @@ static int srp_reset_device(struct scsi_cmnd *scmnd)
|
|
|
if (status)
|
|
|
return FAILED;
|
|
|
|
|
|
- for (i = 0; i < target->ch_count; i++) {
|
|
|
- ch = &target->ch[i];
|
|
|
- for (j = 0; j < target->req_ring_size; ++j) {
|
|
|
- struct srp_request *req = &ch->req_ring[j];
|
|
|
-
|
|
|
- srp_finish_req(ch, req, scmnd->device, DID_RESET << 16);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
return SUCCESS;
|
|
|
}
|
|
|
|