aboutsummaryrefslogtreecommitdiff
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 86f524338e03..5664acea3000 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1649,24 +1649,6 @@ drm_gem_object_handle_reference(struct drm_gem_object *obj)
}
static inline void
-drm_gem_object_handle_unreference(struct drm_gem_object *obj)
-{
- if (obj == NULL)
- return;
-
- if (atomic_read(&obj->handle_count) == 0)
- return;
- /*
- * Must bump handle count first as this may be the last
- * ref, in which case the object would disappear before we
- * checked for a name
- */
- if (atomic_dec_and_test(&obj->handle_count))
- drm_gem_object_handle_free(obj);
- drm_gem_object_unreference(obj);
-}
-
-static inline void
drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj)
{
if (obj == NULL)