Commit c594285f authored by Colin Ian King's avatar Colin Ian King Committed by Roland Scheidegger

drm/vmwgfx: remove redundant assignment to variable ret

The variable ret is being initialized with a value that is never read
and it is being updated later with a new value. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarRoland Scheidegger <sroland@vmware.com>
parent bde26a79
...@@ -1651,7 +1651,7 @@ vmw_gb_surface_reference_internal(struct drm_device *dev, ...@@ -1651,7 +1651,7 @@ vmw_gb_surface_reference_internal(struct drm_device *dev,
struct vmw_surface_metadata *metadata; struct vmw_surface_metadata *metadata;
struct ttm_base_object *base; struct ttm_base_object *base;
uint32_t backup_handle; uint32_t backup_handle;
int ret = -EINVAL; int ret;
ret = vmw_surface_handle_reference(dev_priv, file_priv, req->sid, ret = vmw_surface_handle_reference(dev_priv, file_priv, req->sid,
req->handle_type, &base); req->handle_type, &base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment