spi: oc-tiny: Remove unneeded NULL checking for hw->bitbang.master
authorAxel Lin <axel.lin@ingics.com>
Wed, 5 Mar 2014 05:34:21 +0000 (13:34 +0800)
committerMark 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

index f7c896e..4fd2981 100644 (file)
@@ -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;