Skip to contentSkip to conversation

moxtet: remove set but not used variable 'dummy'

PATCH New Jason Yan 1 participant 1 message Aug 21, 2019 Arm/cz.nic turris support

lore
Share & tools
lore

Jason Yan

author
#0 lore raw

PATCH 1/1 moxtet: remove set but not used variable 'dummy'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/bus/moxtet.c: In function moxtet_remove:
drivers/bus/moxtet.c:822:6: warning: variable dummy set but not used [-Wunused-but-set-variable]

---
 drivers/bus/moxtet.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/bus/moxtet.c +1 -2
index 1ee4570e7e17..baccf7609357 100644
@@ -819,7 +819,6 @@ static int moxtet_probe(struct spi_device *spi)
 static int moxtet_remove(struct spi_device *spi)
 {
 	struct moxtet *moxtet = spi_get_drvdata(spi);
-	int dummy;
 
 	free_irq(moxtet->dev_irq, moxtet);
 
@@ -827,7 +826,7 @@ static int moxtet_remove(struct spi_device *spi)
 
 	moxtet_unregister_debugfs(moxtet);
 
-	dummy = device_for_each_child(moxtet->dev, NULL, __unregister);
+	device_for_each_child(moxtet->dev, NULL, __unregister);
 
 	mutex_destroy(&moxtet->lock);
 
Signature · 1 line
2.17.2