summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-10-20 11:11:41 +0200
committerMark Brown <broonie@kernel.org>2015-10-20 16:45:43 +0200
commitf4aaa1c8a5c0e0a3fc565360df83965f3918c874 (patch)
tree2c6053949c483888fcf6516af071c08ab2b3563b /drivers/spi
parentspi: dw: explicitly free IRQ handler in dw_spi_remove_host() (diff)
downloadlinux-f4aaa1c8a5c0e0a3fc565360df83965f3918c874.tar.xz
linux-f4aaa1c8a5c0e0a3fc565360df83965f3918c874.zip
spi: dw: remove a NULL check when call ->remove()
Currently all users aware about calling dw_spi_remove_host() with properly set parameter. Remove unneeded check. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-dw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index 221ff97557a3..cc2e98037afd 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -540,8 +540,6 @@ EXPORT_SYMBOL_GPL(dw_spi_add_host);
void dw_spi_remove_host(struct dw_spi *dws)
{
- if (!dws)
- return;
dw_spi_debugfs_remove(dws);
if (dws->dma_ops && dws->dma_ops->dma_exit)