]> 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, 5 Dec 2018 09:09:16 +0000 (10:09 +0100)
commit2f5904b20ff7dd754351c91842a65109a24a42d6
treeab8e55e95751fab71d9de14ae20ea7185ab6ae18
parent28278bb30997969077ea2bc9423b9fce138f513e
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: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c