From: Jean Delvare <jdelvare@suse.de>
To: linux-wireless@vger.kernel.org
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>,
Aloisio Almeida Jr <aloisio.almeida@openbossa.org>,
Samuel Ortiz <sameo@linux.intel.com>
Subject: [PATCH] NFC: microread: Delete dead code in microread_i2c_irq_thread_fn
Date: Tue, 22 Apr 2014 17:29:52 +0200 [thread overview]
Message-ID: <20140422172952.03dfa721@endymion.delvare> (raw)
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@suse.de>
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
---
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
reply other threads:[~2014-04-22 15:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140422172952.03dfa721@endymion.delvare \
--to=jdelvare@suse.de \
--cc=aloisio.almeida@openbossa.org \
--cc=lauro.venancio@openbossa.org \
--cc=linux-wireless@vger.kernel.org \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox