diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-06-15 20:41:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-17 13:50:52 +0100 |
commit | ebc37af5e0a134355ea2b62ed4141458bdbd5389 (patch) | |
tree | c75018efc02c6dfced5f6a20f7d3bb97cc909746 /drivers/spi/spi-mxs.c | |
parent | 36f34737ff48f66c8a19b8788311e4b40d4adf80 (diff) | |
download | linux-ebc37af5e0a134355ea2b62ed4141458bdbd5389.tar.gz linux-ebc37af5e0a134355ea2b62ed4141458bdbd5389.tar.bz2 linux-ebc37af5e0a134355ea2b62ed4141458bdbd5389.zip |
spi: No need to assign dummy value in spi_unregister_controller()
The device_for_each_child() doesn't require the returned value to be checked.
Thus, drop the dummy variable completely and have no warning anymore:
drivers/spi/spi.c: In function ‘spi_unregister_controller’:
drivers/spi/spi.c:2480:6: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
int dummy;
^~~~~
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
0 files changed, 0 insertions, 0 deletions