[PATCH 1/5] drm: Remove unused variable in drm_global_item_ref()

Alex Deucher alexdeucher at gmail.com
Sat Sep 28 10:47:21 PDT 2013


On Sat, Sep 28, 2013 at 11:24 AM, Damien Lespiau
<damien.lespiau at intel.com> wrote:
> Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>

For the series:

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/drm_global.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_global.c b/drivers/gpu/drm/drm_global.c
> index f731116..3d2e91c 100644
> --- a/drivers/gpu/drm/drm_global.c
> +++ b/drivers/gpu/drm/drm_global.c
> @@ -67,7 +67,6 @@ int drm_global_item_ref(struct drm_global_reference *ref)
>  {
>         int ret;
>         struct drm_global_item *item = &glob[ref->global_type];
> -       void *object;
>
>         mutex_lock(&item->mutex);
>         if (item->refcount == 0) {
> @@ -85,7 +84,6 @@ int drm_global_item_ref(struct drm_global_reference *ref)
>         }
>         ++item->refcount;
>         ref->object = item->object;
> -       object = item->object;
>         mutex_unlock(&item->mutex);
>         return 0;
>  out_err:
> --
> 1.8.3.1
>
> _______________________________________________
> 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