Move declaration of "j" inside #ifdef block where it is used to
eliminate compiler warning.
This commit is contained in:
parent
75398cff82
commit
a3c26d01a1
|
@ -131,7 +131,7 @@ xf86FormatPciBusNumber(int busnum, char *buffer)
|
||||||
static void
|
static void
|
||||||
FindPCIVideoInfo(void)
|
FindPCIVideoInfo(void)
|
||||||
{
|
{
|
||||||
int i = 0, j, k;
|
int i = 0, k;
|
||||||
int num = 0;
|
int num = 0;
|
||||||
struct pci_device * info;
|
struct pci_device * info;
|
||||||
struct pci_slot_match m;
|
struct pci_slot_match m;
|
||||||
|
@ -180,6 +180,8 @@ FindPCIVideoInfo(void)
|
||||||
if ((PCISHAREDIOCLASSES( info->device_class ))
|
if ((PCISHAREDIOCLASSES( info->device_class ))
|
||||||
&& (pcrp->pci_command & PCI_CMD_IO_ENABLE)
|
&& (pcrp->pci_command & PCI_CMD_IO_ENABLE)
|
||||||
&& (pcrp->pci_prog_if == 0)) {
|
&& (pcrp->pci_prog_if == 0)) {
|
||||||
|
int j;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Attempt to ensure that VGA is actually routed to this
|
* Attempt to ensure that VGA is actually routed to this
|
||||||
* adapter on entry. This needs to be fixed when we finally
|
* adapter on entry. This needs to be fixed when we finally
|
||||||
|
|
Loading…
Reference in New Issue