]> 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)
commit0817b3e10ba591d981d1ad9624e18a2d369f2621
treee9c4465c6d17828723ecdb4fc089eb28b4f515e8
parentd352bcfd008ea79a18dad4cf89cb682f9e00b9b1
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