diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-09-10 18:12:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-11 00:22:16 +0200 |
commit | e52e4130ffefaab11c7a09ab83de7022400d5d60 (patch) | |
tree | 44668b5a0607dde87c448c8eb564af4335eb9dd2 /drivers/nfc/s3fwrn5 | |
parent | nfc: s3fwrn5: Remove wrong vendor prefix from GPIOs (diff) | |
download | linux-e52e4130ffefaab11c7a09ab83de7022400d5d60.tar.xz linux-e52e4130ffefaab11c7a09ab83de7022400d5d60.zip |
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: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/s3fwrn5')
-rw-r--r-- | drivers/nfc/s3fwrn5/i2c.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c index 557279492503..dc995286be84 100644 --- a/drivers/nfc/s3fwrn5/i2c.c +++ b/drivers/nfc/s3fwrn5/i2c.c @@ -164,7 +164,6 @@ out: static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id) { struct s3fwrn5_i2c_phy *phy = phy_id; - int ret = 0; if (!phy || !phy->ndev) { WARN_ON_ONCE(1); @@ -179,10 +178,9 @@ static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id) switch (phy->mode) { case S3FWRN5_MODE_NCI: case S3FWRN5_MODE_FW: - ret = s3fwrn5_i2c_read(phy); + s3fwrn5_i2c_read(phy); break; case S3FWRN5_MODE_COLD: - ret = -EREMOTEIO; break; } |