From 14c48ab2d9be451ff51783cfb9996428b145e878 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 5 Mar 2014 13:34:21 +0800 Subject: [PATCH] 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 Signed-off-by: Mark Brown --- drivers/spi/spi-oc-tiny.c | 2 -- 1 file changed, 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; -- 2.20.1