NFC: microread: drop unused variable
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 7 May 2015 13:38:30 +0000 (16:38 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Jun 2015 22:34:19 +0000 (00:34 +0200)
In microread_i2c_irq_thread_fn 'client' set but not used

Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/microread/i2c.c

index 661e2c8143c40a8e4ab6e98b76a007eafa9a6fd4..daf352597ef8fedd353962b51b5954b66e0b8ce3 100644 (file)
@@ -211,7 +211,6 @@ flush:
 static irqreturn_t microread_i2c_irq_thread_fn(int irq, void *phy_id)
 {
        struct microread_i2c_phy *phy = phy_id;
-       struct i2c_client *client;
        struct sk_buff *skb = NULL;
        int r;
 
@@ -220,8 +219,6 @@ static irqreturn_t microread_i2c_irq_thread_fn(int irq, void *phy_id)
                return IRQ_NONE;
        }
 
-       client = phy->i2c_dev;
-
        if (phy->hard_fault != 0)
                return IRQ_HANDLED;