Explorar el Código

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>
Axel Lin hace 12 años
padre
commit
646d79b2d7
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      drivers/spi/spi-altera.c

+ 0 - 2
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 */
 	/* setup the state for the bitbang driver */
 	hw->bitbang.master = master;
 	hw->bitbang.master = master;
-	if (!hw->bitbang.master)
-		return err;
 	hw->bitbang.chipselect = altera_spi_chipsel;
 	hw->bitbang.chipselect = altera_spi_chipsel;
 	hw->bitbang.txrx_bufs = altera_spi_txrx;
 	hw->bitbang.txrx_bufs = altera_spi_txrx;