Commit e52e4130 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by David S. Miller

nfc: s3fwrn5: Remove unneeded 'ret' variable

The local variable 'ret' can be removed:

  drivers/nfc/s3fwrn5/i2c.c:167:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1995c4cc
...@@ -164,7 +164,6 @@ static int s3fwrn5_i2c_read(struct s3fwrn5_i2c_phy *phy) ...@@ -164,7 +164,6 @@ static int s3fwrn5_i2c_read(struct s3fwrn5_i2c_phy *phy)
static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id) static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id)
{ {
struct s3fwrn5_i2c_phy *phy = phy_id; struct s3fwrn5_i2c_phy *phy = phy_id;
int ret = 0;
if (!phy || !phy->ndev) { if (!phy || !phy->ndev) {
WARN_ON_ONCE(1); WARN_ON_ONCE(1);
...@@ -179,10 +178,9 @@ static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id) ...@@ -179,10 +178,9 @@ static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id)
switch (phy->mode) { switch (phy->mode) {
case S3FWRN5_MODE_NCI: case S3FWRN5_MODE_NCI:
case S3FWRN5_MODE_FW: case S3FWRN5_MODE_FW:
ret = s3fwrn5_i2c_read(phy); s3fwrn5_i2c_read(phy);
break; break;
case S3FWRN5_MODE_COLD: case S3FWRN5_MODE_COLD:
ret = -EREMOTEIO;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment