Fix my error in rev. 1.109.

Submitted by:	jhb
Pointy hat to:	glebius
This commit is contained in:
Gleb Smirnoff 2006-09-01 09:56:24 +00:00
parent 444f80d54b
commit 824d7cd2cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161810

View file

@ -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 |=