From: Daniel Vetter Date: Tue, 16 Jul 2013 07:11:56 +0000 (+0200) Subject: drm/gem: remove drm_gem_object_handle_unreference X-Git-Tag: submit/tizen/20141121.110247~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5d41019ff75931541cdd89307573969cd7511f1;p=platform%2Fkernel%2Flinux-3.10.git drm/gem: remove drm_gem_object_handle_unreference It's unused, everyone is using the _unlocked variant only. Signed-off-by: Daniel Vetter Reviewed-by: Rob Clark Signed-off-by: Dave Airlie --- diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 3a73299..1128508 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)