mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
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>
This commit is contained in:
parent
02f20387e1
commit
f4aaa1c8a5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user