From: Wolfram Sang <wsa@the-dreams.de>
To: linux-i2c@vger.kernel.org
Cc: Wolfram Sang <wsa@the-dreams.de>,
Vladimir Zapolskiy <vz@mleia.com>,
Muhammad Falak R Wani <falakreyaz@gmail.com>,
Vitaly Wool <vitalywool@gmail.com>
Subject: [PATCH] i2c: pnx: remove superfluous assignment
Date: Sun, 25 Oct 2015 16:20:59 +0100 [thread overview]
Message-ID: <1445786459-22690-1-git-send-email-wsa@the-dreams.de> (raw)
smatch rightfully says:
drivers/i2c/busses/i2c-pnx.c:499 i2c_pnx_xfer warn: unused return: stat = ioread32()
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: Vladimir Zapolskiy <vz@mleia.com>
Cc: Muhammad Falak R Wani <falakreyaz@gmail.com>
Cc: Vitaly Wool <vitalywool@gmail.com>
---
drivers/i2c/busses/i2c-pnx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c
index cdbf6320cb909e..1b8bf368be0c15 100644
--- a/drivers/i2c/busses/i2c-pnx.c
+++ b/drivers/i2c/busses/i2c-pnx.c
@@ -496,7 +496,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
struct i2c_msg *pmsg;
int rc = 0, completed = 0, i;
struct i2c_pnx_algo_data *alg_data = adap->algo_data;
- u32 stat = ioread32(I2C_REG_STS(alg_data));
+ u32 stat;
dev_dbg(&alg_data->adapter.dev,
"%s(): entering: %d messages, stat = %04x.\n",
--
2.1.4
next reply other threads:[~2015-10-25 15:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-25 15:20 Wolfram Sang [this message]
2015-10-30 11:36 ` [PATCH] i2c: pnx: remove superfluous assignment Wolfram Sang
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=1445786459-22690-1-git-send-email-wsa@the-dreams.de \
--to=wsa@the-dreams.de \
--cc=falakreyaz@gmail.com \
--cc=linux-i2c@vger.kernel.org \
--cc=vitalywool@gmail.com \
--cc=vz@mleia.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;
as well as URLs for NNTP newsgroup(s).