diff options
author | glebius <glebius@FreeBSD.org> | 2006-09-01 09:56:24 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-09-01 09:56:24 +0000 |
commit | 218dae77edb65af940ae5e569fa697336bb3cfb3 (patch) | |
tree | 31945af4f9cc369b41183d9392c217712dab29a5 /sys | |
parent | 83b65bce0134abe80190a0e4c62dd4c901a92faf (diff) | |
download | FreeBSD-src-218dae77edb65af940ae5e569fa697336bb3cfb3.zip FreeBSD-src-218dae77edb65af940ae5e569fa697336bb3cfb3.tar.gz |
Fix my error in rev. 1.109.
Submitted by: jhb
Pointy hat to: glebius
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 b151b54..27a8e6a 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 |= |