]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
spi: imx: Nothing to do in setupxfer when transfer is NULL
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 2 Jun 2017 05:37:59 +0000 (07:37 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 18:48:22 +0000 (19:48 +0100)
commitabb1ff195a21094f3bfb1cf8d425ff360d8a89ee
tree34d60e7411db7e74df9be1b37fea1ae4a0c1c031
parent09b3ed2d5916f270ffbc5d002a2196ededf5ec7e
spi: imx: Nothing to do in setupxfer when transfer is NULL

When the spi_transfer given in spi_imx_setupxfer is NULL then
we have nothing to do. Bail out early in this case so that
we do not have to test for t != NULL multiple times later.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c