move initialization of iobase to before we first use it.
This commit is contained in:
parent
7a58f70fb2
commit
4153f58dfe
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: boca.c,v 1.39 2002/10/02 03:10:46 thorpej Exp $ */
|
||||
/* $NetBSD: boca.c,v 1.40 2002/11/17 22:49:56 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: boca.c,v 1.39 2002/10/02 03:10:46 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: boca.c,v 1.40 2002/11/17 22:49:56 chs Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -108,6 +108,8 @@ bocaprobe(parent, self, aux)
|
||||
if (ia->ia_irq[0].ir_irq == ISACF_IRQ_DEFAULT)
|
||||
return (0);
|
||||
|
||||
iobase = ia->ia_io[0].ir_addr;
|
||||
|
||||
/* if the first port is in use as console, then it. */
|
||||
if (com_is_console(iot, iobase, 0))
|
||||
goto checkmappings;
|
||||
@ -122,7 +124,7 @@ bocaprobe(parent, self, aux)
|
||||
goto out;
|
||||
|
||||
checkmappings:
|
||||
for (i = 1, iobase = ia->ia_io[0].ir_addr; i < NSLAVES; i++) {
|
||||
for (i = 1; i < NSLAVES; i++) {
|
||||
iobase += COM_NPORTS;
|
||||
|
||||
if (com_is_console(iot, iobase, 0))
|
||||
|
Loading…
Reference in New Issue
Block a user