Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit caebdd3c authored by Jason Yan's avatar Jason Yan Committed by Arnd Bergmann
Browse files

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: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 735f0131
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);