diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-15 00:02:35 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-19 02:47:13 +0200 |
commit | 6bc505b86ae9d4ab45464e3e3c0ab8992d6a5aff (patch) | |
tree | 2a0ff0844aba2081d46683cb665208cd83862884 | |
parent | drm/gem: move drm_gem_object_handle_unreference_unlocked into drm_gem.c (diff) | |
download | linux-6bc505b86ae9d4ab45464e3e3c0ab8992d6a5aff.tar.xz linux-6bc505b86ae9d4ab45464e3e3c0ab8992d6a5aff.zip |
drm/gem: remove bogus NULL check from drm_gem_object_handle_unreference_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>
-rw-r--r-- | drivers/gpu/drm/drm_gem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index f3c1bbcf807f..44978bcf8125 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -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; |