summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-oc-tiny.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-03-05 13:34:21 +0800
committerMark Brown <broonie@linaro.org>2014-03-13 09:54:16 +0000
commit14c48ab2d9be451ff51783cfb9996428b145e878 (patch)
tree96747e82ac4d2e644fef191a15bfb1195d7b604f /drivers/spi/spi-oc-tiny.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadtalos-obmc-linux-14c48ab2d9be451ff51783cfb9996428b145e878.tar.gz
talos-obmc-linux-14c48ab2d9be451ff51783cfb9996428b145e878.zip
spi: oc-tiny: Remove unneeded NULL checking for hw->bitbang.master
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>
Diffstat (limited to 'drivers/spi/spi-oc-tiny.c')
-rw-r--r--drivers/spi/spi-oc-tiny.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c
index f7c896e2981e..4fd2981b3605 100644
--- 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;
OpenPOWER on IntegriCloud