Przeglądaj źródła

htons was used in ISAPnP code just due to ISAPnP storing bytes in

reverse order.
tags/v0.9.3
Michael Brown 19 lat temu
rodzic
commit
5b8e549c83
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      src/drivers/bus/pci.c

+ 2
- 2
src/drivers/bus/pci.c Wyświetl plik

@@ -154,8 +154,8 @@ int find_pci_device ( struct pci_device *pci,
154 154
 		/* Fill in dev structure, if present */
155 155
 		if ( pci->dev ) {
156 156
 			pci->dev->name = driver->name;
157
-			pci->dev->devid.vendor_id = htons ( pci->vendor );
158
-			pci->dev->devid.device_id = htons ( pci->dev_id );
157
+			pci->dev->devid.vendor_id = pci->vendor;
158
+			pci->dev->devid.device_id = pci->dev_id;
159 159
 		}
160 160
 
161 161
 		/* If driver has a class, and class matches, use it */

Ładowanie…
Anuluj
Zapisz