Re: [PATCH] phy: rockchip-dp: fix return value check in rockchip_dp_phy_probe()

From: Heiko Stübner
Date: Tue Jun 14 2016 - 02:40:19 EST


Am Montag, 13. Juni 2016, 23:31:47 schrieb weiyj_lk@xxxxxxx:
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxxxx>

obviously correct, thanks for catching.

Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx>