]> git.baikalelectronics.ru Git - kernel.git/commit
phy: rockchip-dp: fix return value check in rockchip_dp_phy_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 13 Jun 2016 23:31:47 +0000 (23:31 +0000)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 17 Jun 2016 13:14:24 +0000 (18:44 +0530)
commita5742149adfbd5e9a54f233e32ad75518d9ffd6d
treea003284df5f05bf9f11c341096a9b7aefa733e28
parent72106858ea3f64178f9d873a9527e9d9a46d6a7b
phy: rockchip-dp: fix return value check in rockchip_dp_phy_probe()

In case of error, the function devm_kzalloc() returns NULL pointer
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>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-rockchip-dp.c