diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-08-27 07:07:43 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-09-13 11:34:34 +1000 |
commit | 3a9950781cccc0a2c219c9369e585945f1de1c0f (patch) | |
tree | 62c96e431706a815fe06c7f91d90e35f47282c93 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | |
parent | cd004b3f4cd4169815c82bf9e424fda06978898a (diff) |
vmwgfx: remove useless set memory to zero use memset()
The memory return by kzalloc() or kmem_cache_zalloc() has already
be set to zero, so remove useless memset(0).
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index c50724bd30f..54743943d8b 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -483,7 +483,6 @@ static int do_surface_dirty_sou(struct vmw_private *dev_priv, } /* only need to do this once */ - memset(cmd, 0, fifo_size); cmd->header.id = cpu_to_le32(SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN); cmd->header.size = cpu_to_le32(fifo_size - sizeof(cmd->header)); |