summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-14 22:02:35 (GMT)
committerInki Dae <inki.dae@samsung.com>2014-10-15 11:05:17 (GMT)
commitf6d675ea9af22b13a1b7c9d83de7b81865ff8810 (patch)
tree97dc1abe9a24f59344433fcb34a2446b17799caa
parent824b3cb5afdee43926d7b1a757f92a76a5805118 (diff)
downloadlinux-3.10-f6d675ea9af22b13a1b7c9d83de7b81865ff8810.zip
linux-3.10-f6d675ea9af22b13a1b7c9d83de7b81865ff8810.tar.gz
linux-3.10-f6d675ea9af22b13a1b7c9d83de7b81865ff8810.tar.bz2
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.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index 407c1f4..21a6cbc 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -301,9 +301,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;