Search Linux Wireless

[PATCH] NFC: microread: Delete dead code in microread_i2c_irq_thread_fn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the following warning (with W=1):

drivers/nfc/microread/i2c.c: In function "microread_i2c_irq_thread_fn":
drivers/nfc/microread/i2c.c:215:21: warning: variable "client" set but not used [-Wunused-but-set-variable]
  struct i2c_client *client;
                     ^

Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
Cc: Lauro Ramos Venancio <lauro.venancio@xxxxxxxxxxxxx>
Cc: Aloisio Almeida Jr <aloisio.almeida@xxxxxxxxxxxxx>
Cc: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx>
---
 drivers/nfc/microread/i2c.c |    3 ---
 1 file changed, 3 deletions(-)

--- linux-3.15-rc2.orig/drivers/nfc/microread/i2c.c	2014-04-22 17:14:06.962088154 +0200
+++ linux-3.15-rc2/drivers/nfc/microread/i2c.c	2014-04-22 17:25:54.467845993 +0200
@@ -212,7 +212,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;
 
@@ -221,8 +220,6 @@ static irqreturn_t microread_i2c_irq_thr
 		return IRQ_NONE;
 	}
 
-	client = phy->i2c_dev;
-
 	if (phy->hard_fault != 0)
 		return IRQ_HANDLED;
 


-- 
Jean Delvare
SUSE L3 Support
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux