mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +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
1 changed files with 0 additions and 2 deletions
|
@ -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 a new issue