spi: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 12 Feb 2016 06:38:33 +0000 (09:38 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 12 Feb 2016 23:03:56 +0000 (23:03 +0000)
commit657d32efe04197736ed328a34ba659b5172c8cce
tree31acb29706b1af7a2bca1b18c39a73bbf57f03c4
parentd9f1212272818420fcde611a940c1ad611a8b785
spi: checking for NULL instead of IS_ERR

spi_replace_transfers() returns error pointers on error, it never
returns NULL.

Fixes: d9f121227281 ('spi: core: add spi_split_transfers_maxsize')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c