Skip to content

Commit e06d45d

Browse files
Colin Ian Kingthomashvmw
authored andcommitted
drm/vmwgfx: remove redundant return ret statement
The return statement is redundant as there is a return statement immediately before it so we have dead code that can be removed. Also remove the unused declaration of ret. Detected by CoverityScan, CID#1473793 ("Structurally dead code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
1 parent 73b6f96 commit e06d45d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,6 @@ static int vmw_cmd_check_define_gmrfb(struct vmw_private *dev_priv,
17381738
void *buf)
17391739
{
17401740
struct vmw_buffer_object *vmw_bo;
1741-
int ret;
17421741

17431742
struct {
17441743
uint32_t header;
@@ -1748,7 +1747,6 @@ static int vmw_cmd_check_define_gmrfb(struct vmw_private *dev_priv,
17481747
return vmw_translate_guest_ptr(dev_priv, sw_context,
17491748
&cmd->body.ptr,
17501749
&vmw_bo);
1751-
return ret;
17521750
}
17531751

17541752

0 commit comments

Comments
 (0)