patch-1.3.32 linux/arch/alpha/kernel/bios32.c
Next file: linux/arch/alpha/kernel/entry.S
Previous file: linux/arch/alpha/kernel/apecs.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Fri Oct 6 11:31:12 1995
- Orig file:
v1.3.31/linux/arch/alpha/kernel/bios32.c
- Orig date:
Wed Sep 27 15:59:56 1995
diff -u --recursive --new-file v1.3.31/linux/arch/alpha/kernel/bios32.c linux/arch/alpha/kernel/bios32.c
@@ -310,17 +310,17 @@
unsigned short index, unsigned char *bus,
unsigned char *devfn)
{
- unsigned int current = 0;
+ unsigned int curr = 0;
struct pci_dev *dev;
for (dev = pci_devices; dev; dev = dev->next) {
if (dev->vendor == vendor && dev->device == device_id) {
- if (current == index) {
+ if (curr == index) {
*devfn = dev->devfn;
*bus = dev->bus->number;
return PCIBIOS_SUCCESSFUL;
}
- ++current;
+ ++curr;
}
}
return PCIBIOS_DEVICE_NOT_FOUND;
@@ -334,17 +334,17 @@
int pcibios_find_class (unsigned int class_code, unsigned short index,
unsigned char *bus, unsigned char *devfn)
{
- unsigned int current = 0;
+ unsigned int curr = 0;
struct pci_dev *dev;
for (dev = pci_devices; dev; dev = dev->next) {
if (dev->class == class_code) {
- if (current == index) {
+ if (curr == index) {
*devfn = dev->devfn;
*bus = dev->bus->number;
return PCIBIOS_SUCCESSFUL;
}
- ++current;
+ ++curr;
}
}
return PCIBIOS_DEVICE_NOT_FOUND;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this