drm/msm: fix return value check in ERR_PTR()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 10 Sep 2013 22:56:12 +0000 (06:56 +0800)
committerRob Clark <robdclark@gmail.com>
Wed, 11 Sep 2013 21:31:33 +0000 (17:31 -0400)
commit1f70e079c773b2c5988b0f0b4d314fc0f6c7a1b8
tree5fa117c3854eeeeb23d749402e125312e67cf7c3
parent198725337ef1f73b73e7dc953c6ffb0799f26ffe
drm/msm: fix return value check in ERR_PTR()

In case of error, the function drm_prime_pages_to_sg() 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>
drivers/gpu/drm/msm/msm_gem.c
This page took 0.029164 seconds and 5 git commands to generate.