]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix uninitialized return in vmw_kms_helper_dirty()
authorChristian Engelmayer <cengelma@gmx.at>
Fri, 18 Sep 2015 22:32:24 +0000 (00:32 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 24 Sep 2015 07:22:00 +0000 (00:22 -0700)
commitb97bdc3fca14ce2fa8fc30fee8b2c0e68649cc35
tree47b01f4020935139db1b586814f23abaedeb437a
parent0817b3e10ba591d981d1ad9624e18a2d369f2621
drm/vmwgfx: Fix uninitialized return in vmw_kms_helper_dirty()

Function vmw_kms_helper_dirty() 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 1324255.

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_kms.c