linux/drivers/gpu/drm/vgem
Wei Yongjun e8fa49b5d9 drm/vgem: Fix return value check in vgem_init()
In case of error, the function platform_device_register_simple() returns
ERR_PTR() and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().

Fixes: af33a9190d ("drm/vgem: Enable dmabuf import interfaces")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Fix fixes: tag per Chris' review.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170521011939.8111-1-weiyj.lk@gmail.com
2017-05-22 09:47:34 +02:00
..
Makefile drm/vgem: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:13:59 +02:00
vgem_drv.c drm/vgem: Fix return value check in vgem_init() 2017-05-22 09:47:34 +02:00
vgem_drv.h drm/vgem: Enable dmabuf import interfaces 2017-05-08 09:39:13 +02:00
vgem_fence.c drm/vgem: Switch to reservation_object_lock() helpers 2017-01-24 11:00:23 +01:00