drm/prime: replace NULL with error value in drm_prime_pages_to_sg
authorYoungJun Cho <yj44.cho@samsung.com>
Mon, 24 Jun 2013 07:40:53 +0000 (16:40 +0900)
committerDave Airlie <airlied@redhat.com>
Fri, 28 Jun 2013 02:45:19 +0000 (12:45 +1000)
commit7e3d88f9cce3ea3350fa25b89393a6dd2b8e5ed4
treead5d9a4315187e36d930003e18bbd45655b43b31
parentb720d54a5caf077011f0dc6ba7792866d2828d16
drm/prime: replace NULL with error value in drm_prime_pages_to_sg

Instead of NULL, error value is casted with ERR_PTR() for
drm_prime_pages_to_sg() and IS_ERR_OR_NULL() macro is replaced
with IS_ERR() macro for drm_gem_map_dma_buf().

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c