spi: dw: remove a NULL check when call ->remove()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 20 Oct 2015 09:11:41 +0000 (12:11 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 20 Oct 2015 14:45:43 +0000 (15:45 +0100)
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>
drivers/spi/spi-dw.c

index 221ff97557a3b157f3890e3be7c2b88f59ab1b1c..cc2e98037afddd8c552c1a4ade64e4de996483d9 100644 (file)
@@ -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)