]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: exynos_drm_ipp: fix return value check
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 4 Jul 2013 13:35:00 +0000 (21:35 +0800)
committerInki Dae <daeinki@gmail.com>
Mon, 29 Jul 2013 17:01:53 +0000 (02:01 +0900)
commit10b5caa1c04046cd62b64946912e7fa553ab95da
treed0665505b92727c008f8627e182becb4555a9a8c
parentf0fcae0b470f0b177a890c9714e75d29101f14d9
drm/exynos: exynos_drm_ipp: fix return value check

In case of error, the function ipp_find_obj() 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>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_ipp.c