diff options
author | Lespiau, Damien <damien.lespiau@intel.com> | 2013-09-28 15:24:01 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-01 05:28:58 (GMT) |
commit | 5a6b088fd358c89a97ae8ab5ddf6f5232f6642b5 (patch) | |
tree | ae407b97c5be5b2897603c7230bdb58f8e7278de | |
parent | 618e377608c046a696ad78fb3015db0c17719f3a (diff) | |
download | linux-5a6b088fd358c89a97ae8ab5ddf6f5232f6642b5.tar.xz |
drm: Remove unused variable in drm_global_item_ref()
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_global.c | 2 |
1 files changed, 0 insertions, 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: |