From: Andy Shevchenko Date: Tue, 20 Oct 2015 09:11:41 +0000 (+0300) Subject: spi: dw: remove a NULL check when call ->remove() X-Git-Tag: firefly_0821_release~176^2~790^2~3^3~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f4aaa1c8a5c0e0a3fc565360df83965f3918c874;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Mark Brown --- 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)