projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f2038
)
spi: dw: remove a NULL check when call ->remove()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Tue, 20 Oct 2015 09:11:41 +0000
(12:11 +0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 20 Oct 2015 14:45:43 +0000
(15:45 +0100)
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>
drivers/spi/spi-dw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-dw.c
b/drivers/spi/spi-dw.c
index 221ff97557a3b157f3890e3be7c2b88f59ab1b1c..cc2e98037afddd8c552c1a4ade64e4de996483d9 100644
(file)
--- 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)