Skip to content

Commit c594285

Browse files
Colin Ian KingRoland Scheidegger
authored andcommitted
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: Colin Ian King <[email protected]> Signed-off-by: Roland Scheidegger <[email protected]>
1 parent bde26a7 commit c594285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_surface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ vmw_gb_surface_reference_internal(struct drm_device *dev,
16511651
struct vmw_surface_metadata *metadata;
16521652
struct ttm_base_object *base;
16531653
uint32_t backup_handle;
1654-
int ret = -EINVAL;
1654+
int ret;
16551655

16561656
ret = vmw_surface_handle_reference(dev_priv, file_priv, req->sid,
16571657
req->handle_type, &base);

0 commit comments

Comments
 (0)