summaryrefslogtreecommitdiff
path: root/vmwgfx_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmwgfx_context.c')
-rw-r--r--vmwgfx_context.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/vmwgfx_context.c b/vmwgfx_context.c
index f07cd58..cbab2c9 100644
--- a/vmwgfx_context.c
+++ b/vmwgfx_context.c
@@ -856,9 +856,8 @@ struct vmw_resource *vmw_context_cotable(struct vmw_resource *ctx,
if (cotable_type >= SVGA_COTABLE_DX10_MAX)
return ERR_PTR(-EINVAL);
- return vmw_resource_reference
- (container_of(ctx, struct vmw_user_context, res)->
- cotables[cotable_type]);
+ return container_of(ctx, struct vmw_user_context, res)->
+ cotables[cotable_type];
}
/**