mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
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 <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
38dbfb59d1
commit
14c48ab2d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user