summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 20:29:34 +0000
committerphk <phk@FreeBSD.org>2003-05-31 20:29:34 +0000
commit2048912526464c943ca01eb049aa45a6f63814b6 (patch)
tree7de2bef7c0ec5ca84ef0ae4ad8013d1bc6735757 /sys/i386
parente8c1d97f209fdc1266d67f8f5ec3d76ae575750e (diff)
downloadFreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.zip
FreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.tar.gz
Remove unused variable(s).
Found by: FlexeLint
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/gpib.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/i386/isa/gpib.c b/sys/i386/isa/gpib.c
index 288775e..d0eb658 100644
--- a/sys/i386/isa/gpib.c
+++ b/sys/i386/isa/gpib.c
@@ -768,14 +768,11 @@ sendrawgpibfifo(unsigned char device, char *data, int count)
{
int status;
int counter;
- int fifopos;
int sleeptime;
sleeptime = SLEEP_MIN;
counter = 0;
- fifopos = 0;
-
status = EWOULDBLOCK;
do {
/* Wait for fifo to become not full if it is full */
@@ -810,7 +807,6 @@ sendgpibfifo(unsigned char device, char *data, int count)
{
int status;
int counter;
- int fifopos;
int sleeptime;
outb(IMR2, 0x30); /* we have to enable DMA (0x30) for turbo488 to work */
@@ -835,13 +831,10 @@ sendgpibfifo(unsigned char device, char *data, int count)
} while (!(inb(ISR2) & 8) && status == EWOULDBLOCK);
outb(AUXMR, gts); /* Set to Standby (Controller) */
- fifopos = 0;
sleeptime = SLEEP_MIN;
counter = 0;
- fifopos = 0;
-
outb(CMDR, 0x20);
outb(CFG, 0x47); /* 16 bit, write, fifo B first, TMOE TIM */
outb(CMDR, 0x10); /* RESET fifos */
@@ -956,7 +949,6 @@ readgpibfifo(unsigned char device, char *data, int count)
int status2 = 0;
int status1;
int counter;
- int fifopos;
unsigned inword;
outb(IMR2, 0x30); /* we have to enable DMA (0x30) for turbo488 to work */
@@ -991,7 +983,6 @@ readgpibfifo(unsigned char device, char *data, int count)
outb(AUXMR, gts); /* Set to Standby (Controller) */
counter = 0;
- fifopos = 0;
outb(CMDR, 0x04); /* Tell TURBO488 to GO */
OpenPOWER on IntegriCloud