Commit b4263b3c authored by Ondrej Zary's avatar Ondrej Zary Committed by Martin K. Petersen

atp870u: Remove tmport1

Remove tmport1 temporary variable to simplify the code.
Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c43cd036
...@@ -51,7 +51,7 @@ static irqreturn_t atp870u_intr_handle(int irq, void *dev_id) ...@@ -51,7 +51,7 @@ static irqreturn_t atp870u_intr_handle(int irq, void *dev_id)
unsigned char i, j, c, target_id, lun,cmdp; unsigned char i, j, c, target_id, lun,cmdp;
unsigned char *prd; unsigned char *prd;
struct scsi_cmnd *workreq; struct scsi_cmnd *workreq;
unsigned int tmport, tmport1; unsigned int tmport;
unsigned long adrcnt, k; unsigned long adrcnt, k;
#ifdef ED_DBGP #ifdef ED_DBGP
unsigned long l; unsigned long l;
...@@ -78,9 +78,8 @@ static irqreturn_t atp870u_intr_handle(int irq, void *dev_id) ...@@ -78,9 +78,8 @@ static irqreturn_t atp870u_intr_handle(int irq, void *dev_id)
cmdp = inb(dev->ioport[c] + 0x10); cmdp = inb(dev->ioport[c] + 0x10);
if (dev->working[c] != 0) { if (dev->working[c] != 0) {
if (dev->dev_id == ATP885_DEVID) { if (dev->dev_id == ATP885_DEVID) {
tmport1 = dev->ioport[c] + 0x16; if ((inb(dev->ioport[c] + 0x16) & 0x80) == 0)
if ((inb(tmport1) & 0x80) == 0) outb((inb(dev->ioport[c] + 0x16) | 0x80), dev->ioport[c] + 0x16);
outb((inb(tmport1) | 0x80), tmport1);
} }
tmpcip = dev->pciport[c]; tmpcip = dev->pciport[c];
if ((inb(tmpcip) & 0x08) != 0) if ((inb(tmpcip) & 0x08) != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment