diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-16 09:11:56 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-21 19:13:42 +0900 |
commit | c5d41019ff75931541cdd89307573969cd7511f1 (patch) | |
tree | b9d8e35c917affcbf14e26d949082eb2c1eb4063 /include | |
parent | b76be4ede92521b826622ff4fed8a59962fca647 (diff) | |
download | linux-3.10-c5d41019ff75931541cdd89307573969cd7511f1.tar.gz linux-3.10-c5d41019ff75931541cdd89307573969cd7511f1.tar.bz2 linux-3.10-c5d41019ff75931541cdd89307573969cd7511f1.zip |
drm/gem: remove drm_gem_object_handle_unreference
It's unused, everyone is using the _unlocked variant only.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 3a732996cc7..1128508e1b3 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1720,24 +1720,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) |