spi: altera: Remove unneeded NULL checking for hw->bitbang.master
PATCH 1/1 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 <[email protected]>
--- drivers/spi/spi-altera.c | 2 -- 1 file changed, 2 deletions(-)
drivers/spi/spi-altera.c +0 -2
@@ -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;
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
AppliedQuoted 1 line · Axel Lin
We already has NULL test for master after calling
spi_alloc_master().
Applied, thanks,