drm/hisilicon: Fix return value check in ade_dts_parse()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 20 Jun 2016 02:43:43 +0000 (10:43 +0800)
committerXinliang Liu <xinliang.liu@linaro.org>
Mon, 4 Jul 2016 10:49:20 +0000 (18:49 +0800)
commit43fd0d92300878c81ef97e8bb91074025c4acf0f
tree17addde7ac62b04504697fa34ed98dc50a14a491
parentdac2c48ca5ac9bb2d6339aaa733c60d5b801ee86
drm/hisilicon: Fix return value check in ade_dts_parse()

In case of error, the function devm_clk_get() 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: Chen Feng <puck.chen@hisilicon.com>
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
This page took 0.026558 seconds and 5 git commands to generate.