e1000e: Fix logic reversal keeping link active

A logic mishap caused the adapter to keep link while we can
disable it due to WoL not being active, and vice versa.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Auke Kok 2008-02-11 09:25:51 -08:00 коммит произвёл Jeff Garzik
Родитель 14782ca826
Коммит 23b66e2bc2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2008,7 +2008,7 @@ static void e1000_power_down_phy(struct e1000_adapter *adapter)
u16 mii_reg;
/* WoL is enabled */
if (!adapter->wol)
if (adapter->wol)
return;
/* non-copper PHY? */