aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2006-09-01 09:56:24 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2006-09-01 09:56:24 +0000
commit824d7cd2cc4c58e51941f384949ca946d3e4e3fa (patch)
tree31945af4f9cc369b41183d9392c217712dab29a5
parent444f80d54b204858bce6ef6c3c47970b63ab4fda (diff)
Notes
-rw-r--r--sys/dev/em/if_em.c4
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 |=