diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2006-09-01 09:56:24 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2006-09-01 09:56:24 +0000 |
| commit | 824d7cd2cc4c58e51941f384949ca946d3e4e3fa (patch) | |
| tree | 31945af4f9cc369b41183d9392c217712dab29a5 /sys | |
| parent | 444f80d54b204858bce6ef6c3c47970b63ab4fda (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/em/if_em.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index b151b54f66c2..27a8e6a6cc73 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -1973,8 +1973,8 @@ em_identify_hardware(struct adapter *adapter) /* Make sure our PCI config space has the necessary stuff set */ adapter->hw.pci_cmd_word = pci_read_config(dev, PCIR_COMMAND, 2); - if ((adapter->hw.pci_cmd_word & PCIM_CMD_BUSMASTEREN) == 0 && - (adapter->hw.pci_cmd_word & PCIM_CMD_MEMEN)) { + if (!((adapter->hw.pci_cmd_word & PCIM_CMD_BUSMASTEREN) && + (adapter->hw.pci_cmd_word & PCIM_CMD_MEMEN))) { device_printf(dev, "Memory Access and/or Bus Master bits " "were not set!\n"); adapter->hw.pci_cmd_word |= |
