[PATCH 05/20] drm/gem: remove drm_gem_object_handle_unreference
Rob Clark
robdclark at gmail.com
Mon Jul 22 18:17:52 PDT 2013
On Tue, Jul 16, 2013 at 3:11 AM, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> It's unused, everyone is using the _unlocked variant only.
>
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
Reviewed-by: Rob Clark <robdclark at gmail.com>
> ---
> include/drm/drmP.h | 18 ------------------
> 1 file changed, 18 deletions(-)
>
> diff --git a/include/drm/drmP.h b/include/drm/drmP.h
> index baf030c..f949cb2 100644
> --- a/include/drm/drmP.h
> +++ b/include/drm/drmP.h
> @@ -1671,24 +1671,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)
> --
> 1.8.3.2
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
More information about the dri-devel
mailing list