]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: remove redundant return ret statement
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Oct 2018 17:49:53 +0000 (18:49 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 12 Dec 2018 11:01:05 +0000 (12:01 +0100)
commit6e1e892811d986371d3c71cbc1a513aad0b3d7ff
treefb914fc5788396eed6d6049ebf5e6811ace8cb3a
parentf94f3e7cb8a43bf55c85b6e1a97c6a3b444741a0
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>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c