spi: atcspi200: avoid NULL dereference
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 11:41:43 +0000 (12:41 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 16 May 2018 13:48:41 +0000 (19:18 +0530)
commit8fad5e0b114fdd4c4e8d5f105ea3527df2c83986
tree629170d1614804b65e18f73a0de9457b0a93964d
parent4eaa2fa16968359ffcf207e63848ed7f3a6e4309
spi: atcspi200: avoid NULL dereference

For SPI_XFER_BEGIN | SPI_XFER_END the code sets data_out = NULL.
In the debug statement we should not dereference this value.
As we do not transfer any data the debug statement is not needed in this
case anyway.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/atcspi200_spi.c