Skip to content

Commit

Permalink
staging: et131x: Remove cached_mask_value from et131x_adapter
Browse files Browse the repository at this point in the history
cached_mask_value is only ever assigned, never read. Remove it.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent ddf488b commit 9c898c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/et131x/et131x_adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ struct et131x_adapter {
u16 pdown_speed;
u8 pdown_duplex;

u32 cached_mask_value;

/* Xcvr status at last poll */
u16 bmsr;

Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/et131x/et131x_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down

0 comments on commit 9c898c7

Please sign in to comment.