powerpc/4xx: Fix return value check in hsta_msi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 16 Apr 2015 12:18:50 +0000 (20:18 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 6 Aug 2015 06:33:46 +0000 (16:33 +1000)
commit35a7f41cc6bb7013e344502b03c5583d04228bd3
treef3cbfb81316f225909ebb3962de7ea1373b1aa58
parenta368c29cf105485d2c34fb5d09d2dbe813e483e1
powerpc/4xx: Fix return value check in hsta_msi_probe()

In case of error, the functions platform_get_resource() and kmalloc()
returns NULL not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/ppc4xx_hsta_msi.c