projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce4eac
)
spi: altera: Remove unneeded NULL checking for hw->bitbang.master
author
Axel Lin
<axel.lin@ingics.com>
Sun, 12 Jan 2014 06:38:14 +0000
(14:38 +0800)
committer
Mark Brown
<broonie@linaro.org>
Mon, 13 Jan 2014 10:12:45 +0000
(10:12 +0000)
We already has NULL test for master after calling spi_alloc_master().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-altera.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-altera.c
b/drivers/spi/spi-altera.c
index
595b62c
..
5d7deaf
100644
(file)
--- a/
drivers/spi/spi-altera.c
+++ b/
drivers/spi/spi-altera.c
@@
-220,8
+220,6
@@
static int altera_spi_probe(struct platform_device *pdev)
/* setup the state for the bitbang driver */
hw->bitbang.master = master;
- if (!hw->bitbang.master)
- return err;
hw->bitbang.chipselect = altera_spi_chipsel;
hw->bitbang.txrx_bufs = altera_spi_txrx;