diff mbox

drm/ttm: remove unused temp variable

Message ID CACkEZKCEudM9jXvA8vi-jv7SzNVPjQBS4+RDNigPJ9wP+4zWOw@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liu, Xinyun Jan. 22, 2013, 3:39 a.m. UTC
void *object is not used in fact.

Signed-off-by: Xinyun Liu <xinyunliu@gmail.com>
---
 drivers/gpu/drm/drm_global.c |    2 --
 1 file changed, 2 deletions(-)

--
1.7.9.5

Comments

Jerome Glisse Jan. 31, 2013, 5:07 p.m. UTC | #1
On Mon, Jan 21, 2013 at 10:39 PM, Liu, Xinyun <xinyunliu@gmail.com> wrote:
> void *object is not used in fact.
>
> Signed-off-by: Xinyun Liu <xinyunliu@gmail.com>

Reviewed-by: Jerome Glisse <jglisse@redhat.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.7.9.5
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

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: