Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Mark Brown
646d79b2 6ce4eac1

-2
-2
drivers/spi/spi-altera.c
··· 220 220 221 221 /* setup the state for the bitbang driver */ 222 222 hw->bitbang.master = master; 223 - if (!hw->bitbang.master) 224 - return err; 225 223 hw->bitbang.chipselect = altera_spi_chipsel; 226 224 hw->bitbang.txrx_bufs = altera_spi_txrx; 227 225