diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-05 13:34:21 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-13 09:54:16 +0000 |
commit | 14c48ab2d9be451ff51783cfb9996428b145e878 (patch) | |
tree | 96747e82ac4d2e644fef191a15bfb1195d7b604f /drivers/spi | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
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')
-rw-r--r-- | drivers/spi/spi-oc-tiny.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c index f7c896e2981..4fd2981b360 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; |