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)
commitf3b8c0caca02001565cb14b845bf90f59dea8213
tree47b01f4020935139db1b586814f23abaedeb437a
parent49558b471369e790650df8706b5608fee27af42c
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