mirror of https://github.com/ipxe/ipxe.git
htons was used in ISAPnP code just due to ISAPnP storing bytes in
reverse order.pull/1/head
parent
9711f50e20
commit
5b8e549c83
|
@ -154,8 +154,8 @@ int find_pci_device ( struct pci_device *pci,
|
||||||
/* Fill in dev structure, if present */
|
/* Fill in dev structure, if present */
|
||||||
if ( pci->dev ) {
|
if ( pci->dev ) {
|
||||||
pci->dev->name = driver->name;
|
pci->dev->name = driver->name;
|
||||||
pci->dev->devid.vendor_id = htons ( pci->vendor );
|
pci->dev->devid.vendor_id = pci->vendor;
|
||||||
pci->dev->devid.device_id = htons ( pci->dev_id );
|
pci->dev->devid.device_id = pci->dev_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If driver has a class, and class matches, use it */
|
/* If driver has a class, and class matches, use it */
|
||||||
|
|
Loading…
Reference in New Issue