提交 9c898c7a 编写于 作者: M Mark Einon 提交者: Greg Kroah-Hartman

staging: et131x: Remove cached_mask_value from et131x_adapter

cached_mask_value is only ever assigned, never read. Remove it.
Signed-off-by: NMark Einon <mark.einon@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ddf488ba
......@@ -200,8 +200,6 @@ struct et131x_adapter {
u16 pdown_speed;
u8 pdown_duplex;
u32 cached_mask_value;
/* Xcvr status at last poll */
u16 bmsr;
......
......@@ -125,7 +125,6 @@ void et131x_enable_interrupts(struct et131x_adapter *adapter)
else
mask = INT_MASK_ENABLE_NO_FLOW;
adapter->cached_mask_value = mask;
writel(mask, &adapter->regs->global.int_mask);
}
......@@ -139,7 +138,6 @@ void et131x_enable_interrupts(struct et131x_adapter *adapter)
void et131x_disable_interrupts(struct et131x_adapter *adapter)
{
/* Disable all global interrupts */
adapter->cached_mask_value = INT_MASK_DISABLE;
writel(INT_MASK_DISABLE, &adapter->regs->global.int_mask);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册