]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55ab7aab1f88e11abb37ae210db523f33ed1a09a
treead5d9a4315187e36d930003e18bbd45655b43b31
parent432785227d55272b359e02ef3c05a53b01df9823
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