diff options
Diffstat (limited to 'drivers/scsi/gdth_proc.c')
-rw-r--r-- | drivers/scsi/gdth_proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/gdth_proc.c b/drivers/scsi/gdth_proc.c index fe070ab991a0..ad1b60dbcf9c 100644 --- a/drivers/scsi/gdth_proc.c +++ b/drivers/scsi/gdth_proc.c | |||
@@ -758,7 +758,8 @@ static void gdth_stop_timeout(gdth_ha_str *ha, int busnum, int id) | |||
758 | spin_lock_irqsave(&ha->smp_lock, flags); | 758 | spin_lock_irqsave(&ha->smp_lock, flags); |
759 | 759 | ||
760 | for (scp = ha->req_first; scp; scp = (Scsi_Cmnd *)scp->SCp.ptr) { | 760 | for (scp = ha->req_first; scp; scp = (Scsi_Cmnd *)scp->SCp.ptr) { |
761 | if (!IS_GDTH_INTERNAL_CMD(scp)) { | 761 | struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); |
762 | if (!cmndinfo->internal_command) { | ||
762 | b = scp->device->channel; | 763 | b = scp->device->channel; |
763 | t = scp->device->id; | 764 | t = scp->device->id; |
764 | if (t == (unchar)id && b == (unchar)busnum) { | 765 | if (t == (unchar)id && b == (unchar)busnum) { |
@@ -779,7 +780,8 @@ static void gdth_start_timeout(gdth_ha_str *ha, int busnum, int id) | |||
779 | spin_lock_irqsave(&ha->smp_lock, flags); | 780 | spin_lock_irqsave(&ha->smp_lock, flags); |
780 | 781 | ||
781 | for (scp = ha->req_first; scp; scp = (Scsi_Cmnd *)scp->SCp.ptr) { | 782 | for (scp = ha->req_first; scp; scp = (Scsi_Cmnd *)scp->SCp.ptr) { |
782 | if (!IS_GDTH_INTERNAL_CMD(scp)) { | 783 | struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); |
784 | if (!cmndinfo->internal_command) { | ||
783 | b = scp->device->channel; | 785 | b = scp->device->channel; |
784 | t = scp->device->id; | 786 | t = scp->device->id; |
785 | if (t == (unchar)id && b == (unchar)busnum) { | 787 | if (t == (unchar)id && b == (unchar)busnum) { |