summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-altera.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-01-12 14:38:14 +0800
committerMark Brown <broonie@linaro.org>2014-01-13 10:12:45 +0000
commit646d79b2d7bdf99b4776f0d2d818559de710ea28 (patch)
treeea8519949749cca17ca711edf9b4f5389a19b9a1 /drivers/spi/spi-altera.c
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
downloadlwn-646d79b2d7bdf99b4776f0d2d818559de710ea28.tar.gz
lwn-646d79b2d7bdf99b4776f0d2d818559de710ea28.zip
spi: altera: 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-altera.c')
-rw-r--r--drivers/spi/spi-altera.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c
index 595b62cb545d..5d7deaf62867 100644
--- a/drivers/spi/spi-altera.c
+++ b/drivers/spi/spi-altera.c
@@ -220,8 +220,6 @@ static int altera_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.chipselect = altera_spi_chipsel;
hw->bitbang.txrx_bufs = altera_spi_txrx;