staging: et131x: Remove cached_mask_value from et131x_adapter
authorMark Einon <mark.einon@gmail.com>
Sun, 4 Sep 2011 10:24:38 +0000 (11:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:54:56 +0000 (16:54 -0700)
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>
drivers/staging/et131x/et131x_adapter.h
drivers/staging/et131x/et131x_isr.c

index 8c6d5f93c35d9c38ad5eb539a55f2ab9dc4244ff..292a7719b599655dc396fb95dd4750eec1ce31ec 100644 (file)
@@ -200,8 +200,6 @@ struct et131x_adapter {
        u16 pdown_speed;
        u8 pdown_duplex;
 
-       u32 cached_mask_value;
-
        /* Xcvr status at last poll */
        u16 bmsr;
 
index b3290e9356e4e880c77885c39c2df9b9de34d327..0747935fb3c140bd6c87b3cf00b4045e48160009 100644 (file)
@@ -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);
 }