]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fix return value check in ce4100_spi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 22 Feb 2013 02:52:35 +0000 (10:52 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 18:23:17 +0000 (18:23 +0000)
commit640aa51d6e1b58aa05b55df28e66e2dd6b305202
tree924abeb94a522466207130270924e95c97d4220a
parent025d7a061973fce562117d8afddd51b81bc911f1
spi: fix return value check in ce4100_spi_probe()

In case of error, the function platform_device_register_full()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-pxa2xx-pci.c