Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Mark Brown
f4aaa1c8 02f20387

-2
-2
drivers/spi/spi-dw.c
··· 540 540 541 541 void dw_spi_remove_host(struct dw_spi *dws) 542 542 { 543 - if (!dws) 544 - return; 545 543 dw_spi_debugfs_remove(dws); 546 544 547 545 if (dws->dma_ops && dws->dma_ops->dma_exit)