drm/vmwgfx: Fix uninitialized return in vmw_cotable_unbind()
authorChristian Engelmayer <cengelma@gmx.at>
Fri, 18 Sep 2015 22:31:10 +0000 (00:31 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 24 Sep 2015 07:20:37 +0000 (00:20 -0700)
commit49558b471369e790650df8706b5608fee27af42c
treee9c4465c6d17828723ecdb4fc089eb28b4f515e8
parentb07bb761cf6a333b2108cdbe4ffee66407189bb1
drm/vmwgfx: Fix uninitialized return in vmw_cotable_unbind()

Function vmw_cotable_unbind() uses the uninitialized variable ret as
return value. Make the result deterministic and directly return as
the variable is unused anyway. Detected by Coverity CID 1324256.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c