Skip to content

Commit

Permalink
drm/gem: remove bogus NULL check from drm_gem_object_handle_unreferen…
Browse files Browse the repository at this point in the history
…ce_unlocked

Calling this function with a NULL object is simply a bug, so papering
over a NULL object not a good idea.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Aug 19, 2013
1 parent 36da590 commit 6bc505b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/drm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,6 @@ static void drm_gem_object_handle_free(struct drm_gem_object *obj)
void
drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj)
{
if (obj == NULL)
return;

if (atomic_read(&obj->handle_count) == 0)
return;

Expand Down

0 comments on commit 6bc505b

Please sign in to comment.