diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-01-19 10:53:02 -0800 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2017-01-26 20:52:17 -0800 |
commit | 8cd9f2514711019c0a5f99b8c8547d255d85c3f0 (patch) | |
tree | 909e05ba013dce4b6b4f26b37802defccd780172 | |
parent | f0493e653f9679114d1dfd54ab88b54ce95576e1 (diff) |
drm/vmwgfx: Clear uninitialized fields of a parameter
The uninitialized field is not currently used, but might be in the future,
and static analyzers complain.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index cf22110e9eee..7d3cb7824fa1 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -757,7 +757,7 @@ static int vmw_create_dmabuf_proxy(struct drm_device *dev, struct vmw_surface **srf_out) { uint32_t format; - struct drm_vmw_size content_base_size; + struct drm_vmw_size content_base_size = {0}; struct vmw_resource *res; unsigned int bytes_pp; struct drm_format_name_buf format_name; |