drm/i915: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 Jul 2013 05:45:46 +0000 (08:45 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Jul 2013 06:58:33 +0000 (08:58 +0200)
commitdb473b36d4a2eb02c65aefca11578698b3699fe0
tree6644aa6d0b6a4a3fcb01a1cb2591010ad1afe254
parentbf8fa3d383aa9eb0003419e40ad0f3667c810154
drm/i915: checking for NULL instead of IS_ERR()

i915_gem_vma_create() returns and ERR_PTR() or a valid pointer, it never
returns NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_stolen.c