提交 f92518dd 编写于 作者: B Bruce Allan 提交者: Jeff Kirsher

e1000e: replace '1' with 'true' for boolean get_link_status

Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 ec34c170
...@@ -1652,7 +1652,7 @@ static irqreturn_t e1000_intr_msi(int irq, void *data) ...@@ -1652,7 +1652,7 @@ static irqreturn_t e1000_intr_msi(int irq, void *data)
*/ */
if (icr & E1000_ICR_LSC) { if (icr & E1000_ICR_LSC) {
hw->mac.get_link_status = 1; hw->mac.get_link_status = true;
/* /*
* ICH8 workaround-- Call gig speed drop workaround on cable * ICH8 workaround-- Call gig speed drop workaround on cable
* disconnect (LSC) before accessing any PHY registers * disconnect (LSC) before accessing any PHY registers
...@@ -1718,7 +1718,7 @@ static irqreturn_t e1000_intr(int irq, void *data) ...@@ -1718,7 +1718,7 @@ static irqreturn_t e1000_intr(int irq, void *data)
*/ */
if (icr & E1000_ICR_LSC) { if (icr & E1000_ICR_LSC) {
hw->mac.get_link_status = 1; hw->mac.get_link_status = true;
/* /*
* ICH8 workaround-- Call gig speed drop workaround on cable * ICH8 workaround-- Call gig speed drop workaround on cable
* disconnect (LSC) before accessing any PHY registers * disconnect (LSC) before accessing any PHY registers
...@@ -1775,7 +1775,7 @@ static irqreturn_t e1000_msix_other(int irq, void *data) ...@@ -1775,7 +1775,7 @@ static irqreturn_t e1000_msix_other(int irq, void *data)
if (icr & E1000_ICR_OTHER) { if (icr & E1000_ICR_OTHER) {
if (!(icr & E1000_ICR_LSC)) if (!(icr & E1000_ICR_LSC))
goto no_link_interrupt; goto no_link_interrupt;
hw->mac.get_link_status = 1; hw->mac.get_link_status = true;
/* guard against interrupt when we're going down */ /* guard against interrupt when we're going down */
if (!test_bit(__E1000_DOWN, &adapter->state)) if (!test_bit(__E1000_DOWN, &adapter->state))
mod_timer(&adapter->watchdog_timer, jiffies + 1); mod_timer(&adapter->watchdog_timer, jiffies + 1);
......
...@@ -1141,7 +1141,7 @@ static s32 e1000_copper_link_autoneg(struct e1000_hw *hw) ...@@ -1141,7 +1141,7 @@ static s32 e1000_copper_link_autoneg(struct e1000_hw *hw)
} }
} }
hw->mac.get_link_status = 1; hw->mac.get_link_status = true;
return ret_val; return ret_val;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册