Sfoglia il codice sorgente

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>
Andy Shevchenko 10 anni fa
parent
commit
f4aaa1c8a5
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      drivers/spi/spi-dw.c

+ 0 - 2
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)