diff options
author | Jason Yan <yanaijie@huawei.com> | 2019-08-22 03:03:51 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-09-04 17:30:10 +0200 |
commit | caebdd3c114e522b5c9bda2098990e09abfba5b0 (patch) | |
tree | 2017c5715998b0fa5c965f0bc8ea80e326e5dcb7 | |
parent | 735f013110da10f56b7c8733cafac8d513ad407e (diff) |
bus: 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]
Link: https://lore.kernel.org/r/20190822010351.15660-3-marek.behun@nic.cz
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | drivers/bus/moxtet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bus/moxtet.c b/drivers/bus/moxtet.c index 1ee4570e7e17..baccf7609357 100644 --- a/drivers/bus/moxtet.c +++ b/drivers/bus/moxtet.c @@ -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); |