Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68815
b: refs/heads/master
c: 605fe59
h: refs/heads/master
i:
  68813: f6680f3
  68811: b29ab61
  68807: 7bc7297
  68799: 3f76141
v: v3
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Oct 12, 2007
1 parent e774998 commit 9c39df9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 074c8fe4c0c0c7918d99bca34ea8e02a86997530
refs/heads/master: 605fe5987f728e92e75ba12f7be01ffc3b132ad0
38 changes: 0 additions & 38 deletions trunk/drivers/scsi/advansys.c
Original file line number Diff line number Diff line change
Expand Up @@ -5506,7 +5506,6 @@ static void asc_isr_callback(ASC_DVC_VAR *asc_dvc_varp, ASC_QDONE_INFO *qdonep)
asc_board_t *boardp;
struct scsi_cmnd *scp;
struct Scsi_Host *shost;
int i;

ASC_DBG2(1, "asc_isr_callback: asc_dvc_varp 0x%lx, qdonep 0x%lx\n",
(ulong)asc_dvc_varp, (ulong)qdonep);
Expand All @@ -5525,23 +5524,7 @@ static void asc_isr_callback(ASC_DVC_VAR *asc_dvc_varp, ASC_QDONE_INFO *qdonep)
}
ASC_DBG_PRT_CDB(2, scp->cmnd, scp->cmd_len);

/*
* If the request's host pointer is not valid, display a
* message and return.
*/
shost = scp->device->host;
for (i = 0; i < asc_board_count; i++) {
if (asc_host[i] == shost) {
break;
}
}
if (i == asc_board_count) {
ASC_PRINT2
("asc_isr_callback: scp 0x%lx has bad host pointer, host 0x%lx\n",
(ulong)scp, (ulong)shost);
return;
}

ASC_STATS(shost, callback);
ASC_DBG1(1, "asc_isr_callback: shost 0x%lx\n", (ulong)shost);

Expand Down Expand Up @@ -5680,7 +5663,6 @@ static void adv_isr_callback(ADV_DVC_VAR *adv_dvc_varp, ADV_SCSI_REQ_Q *scsiqp)
adv_sgblk_t *sgblkp;
struct scsi_cmnd *scp;
struct Scsi_Host *shost;
int i;
ADV_DCNT resid_cnt;

ASC_DBG2(1, "adv_isr_callback: adv_dvc_varp 0x%lx, scsiqp 0x%lx\n",
Expand Down Expand Up @@ -5716,27 +5698,7 @@ static void adv_isr_callback(ADV_DVC_VAR *adv_dvc_varp, ADV_SCSI_REQ_Q *scsiqp)
}
ASC_DBG_PRT_CDB(2, scp->cmnd, scp->cmd_len);

/*
* If the request's host pointer is not valid, display a message
* and return.
*/
shost = scp->device->host;
for (i = 0; i < asc_board_count; i++) {
if (asc_host[i] == shost) {
break;
}
}
/*
* Note: If the host structure is not found, the adv_req_t request
* structure and adv_sgblk_t structure, if any, is dropped.
*/
if (i == asc_board_count) {
ASC_PRINT2
("adv_isr_callback: scp 0x%lx has bad host pointer, host 0x%lx\n",
(ulong)scp, (ulong)shost);
return;
}

ASC_STATS(shost, callback);
ASC_DBG1(1, "adv_isr_callback: shost 0x%lx\n", (ulong)shost);

Expand Down

0 comments on commit 9c39df9

Please sign in to comment.