From: Wei Yongjun Date: Tue, 10 Sep 2013 22:56:12 +0000 (+0800) Subject: drm/msm: fix return value check in ERR_PTR() X-Git-Tag: v3.12-rc2~3^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f70e079c773b2c5988b0f0b4d314fc0f6c7a1b8;p=pandora-kernel.git 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 --- Reading git-diff-tree failed