mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
1995c4cc3a
commit
e52e4130ff
|
@ -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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue