spi: lpspi: Add the missing NULL check
authorClark Wang <xiaoning.wang@nxp.com>
Wed, 6 Mar 2019 06:30:47 +0000 (06:30 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 18 Mar 2019 12:17:59 +0000 (12:17 +0000)
commit578465ea2b4b56368ddc3dcefb1f6d607382ef86
tree3970243919d7fec5d78d1b3259d276658ead8668
parent09c04466ce7ea494993c0635ba5edb6d2222a806
spi: lpspi: Add the missing NULL check

The spi_transfer *t will be used in one transfer whatever. If t is NULL,
there has no need to try sending data, so add an error return here.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Acked-by: Fugang Duan <Fugang.duan@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c