Changeset 5b3cf90 in mainline for uspace/srv/pci/libpci/i386-ports.c


Ignore:
Timestamp:
2009-08-02T19:38:02Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa5526d
Parents:
f019cc07
Message:

Fix warnings in Bdsh and PCI lib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/pci/libpci/i386-ports.c

    rf019cc07 r5b3cf90  
    8080        for (d.dev = 0; d.dev < 32; d.dev++) {
    8181                u16 class, vendor;
    82                 if (m->read(&d, PCI_CLASS_DEVICE, (byte *) & class,
     82                if ((m->read(&d, PCI_CLASS_DEVICE, (byte *) & class,
    8383                         sizeof(class))
    8484                    && (class == cpu_to_le16(PCI_CLASS_BRIDGE_HOST)
    85                         || class == cpu_to_le16(PCI_CLASS_DISPLAY_VGA))
    86                     || m->read(&d, PCI_VENDOR_ID, (byte *) & vendor,
     85                        || class == cpu_to_le16(PCI_CLASS_DISPLAY_VGA)))
     86                    || (m->read(&d, PCI_VENDOR_ID, (byte *) & vendor,
    8787                               sizeof(vendor))
    8888                    && (vendor == cpu_to_le16(PCI_VENDOR_ID_INTEL)
    89                         || vendor == cpu_to_le16(PCI_VENDOR_ID_COMPAQ))) {
     89                        || vendor == cpu_to_le16(PCI_VENDOR_ID_COMPAQ)))) {
    9090                        a->debug("...outside the Asylum at 0/%02x/0",
    9191                                 d.dev);
Note: See TracChangeset for help on using the changeset viewer.