Skip to content

Commit e52e413

Browse files
krzkdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1995c4c commit e52e413

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/nfc/s3fwrn5/i2c.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ static int s3fwrn5_i2c_read(struct s3fwrn5_i2c_phy *phy)
164164
static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id)
165165
{
166166
struct s3fwrn5_i2c_phy *phy = phy_id;
167-
int ret = 0;
168167

169168
if (!phy || !phy->ndev) {
170169
WARN_ON_ONCE(1);
@@ -179,10 +178,9 @@ static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id)
179178
switch (phy->mode) {
180179
case S3FWRN5_MODE_NCI:
181180
case S3FWRN5_MODE_FW:
182-
ret = s3fwrn5_i2c_read(phy);
181+
s3fwrn5_i2c_read(phy);
183182
break;
184183
case S3FWRN5_MODE_COLD:
185-
ret = -EREMOTEIO;
186184
break;
187185
}
188186

0 commit comments

Comments
 (0)