Move declaration of "j" inside #ifdef block where it is used to

eliminate compiler warning.
This commit is contained in:
Ian Romanick 2006-06-21 14:38:07 -07:00
parent 75398cff82
commit a3c26d01a1

View File

@ -131,7 +131,7 @@ xf86FormatPciBusNumber(int busnum, char *buffer)
static void
FindPCIVideoInfo(void)
{
int i = 0, j, k;
int i = 0, k;
int num = 0;
struct pci_device * info;
struct pci_slot_match m;
@ -180,6 +180,8 @@ FindPCIVideoInfo(void)
if ((PCISHAREDIOCLASSES( info->device_class ))
&& (pcrp->pci_command & PCI_CMD_IO_ENABLE)
&& (pcrp->pci_prog_if == 0)) {
int j;
/*
* Attempt to ensure that VGA is actually routed to this
* adapter on entry. This needs to be fixed when we finally