projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
spi: oc-tiny: Remove unneeded NULL checking for hw->bitbang.master
author
Axel Lin
<axel.lin@ingics.com>
Wed, 5 Mar 2014 05:34:21 +0000
(13:34 +0800)
committer
Mark Brown
<broonie@linaro.org>
Thu, 13 Mar 2014 09:54:16 +0000
(09:54 +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-oc-tiny.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-oc-tiny.c
b/drivers/spi/spi-oc-tiny.c
index f7c896e2981ef684d339f8e97f2b021ff468c35d..4fd2981b3605be485188eec6996fa7e90a0ab353 100644
(file)
--- a/
drivers/spi/spi-oc-tiny.c
+++ b/
drivers/spi/spi-oc-tiny.c
@@
-267,8
+267,6
@@
static int tiny_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.setup_transfer = tiny_spi_setup_transfer;
hw->bitbang.chipselect = tiny_spi_chipselect;
hw->bitbang.txrx_bufs = tiny_spi_txrx_bufs;