net: bcmgenet: remove priv->int0_mask and priv->int1_mask
authorPetri Gynther <pgynther@google.com>
Wed, 25 Mar 2015 19:35:09 +0000 (12:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2015 21:26:12 +0000 (14:26 -0700)
Remove unused priv->int0_mask and priv->int1_mask.

Signed-off-by: Petri Gynther <pgynther@google.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h

index c38d5429e27a7c17ae62c80d4d977ac5a4e7b6d7..030249dd09f084073ac41332e0d75a852f639354 100644 (file)
@@ -985,7 +985,6 @@ static inline void bcmgenet_tx_ring_int_enable(struct bcmgenet_priv *priv,
 {
        bcmgenet_intrl2_1_writel(priv, (1 << ring->index),
                                 INTRL2_CPU_MASK_CLEAR);
-       priv->int1_mask &= ~(1 << ring->index);
 }
 
 static inline void bcmgenet_tx_ring_int_disable(struct bcmgenet_priv *priv,
@@ -993,7 +992,6 @@ static inline void bcmgenet_tx_ring_int_disable(struct bcmgenet_priv *priv,
 {
        bcmgenet_intrl2_1_writel(priv, (1 << ring->index),
                                 INTRL2_CPU_MASK_SET);
-       priv->int1_mask |= (1 << ring->index);
 }
 
 /* Unlocked version of the reclaim routine */
index 7a59879d441f3c989483fdddab874d27bdff3b50..a9e16122f2317a8b309df3411ec73f1fe1443cc8 100644 (file)
@@ -558,8 +558,6 @@ struct bcmgenet_priv {
        void __iomem *base;
        enum bcmgenet_version version;
        struct net_device *dev;
-       u32 int0_mask;
-       u32 int1_mask;
 
        /* NAPI for descriptor based rx */
        struct napi_struct napi ____cacheline_aligned;