]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0fff64ceaacd641b65b88bd6de2dc0dafa353090
treee9c4465c6d17828723ecdb4fc089eb28b4f515e8
parent7788c08af9add6a4c557a89849370e87d1d10be3
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