summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-08-27 07:07:43 +0000
committerDave Airlie <airlied@redhat.com>2012-09-13 11:34:34 +1000
commit3a9950781cccc0a2c219c9369e585945f1de1c0f (patch)
tree62c96e431706a815fe06c7f91d90e35f47282c93 /drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
parentcd004b3f4cd4169815c82bf9e424fda06978898a (diff)
downloadop-kernel-dev-3a9950781cccc0a2c219c9369e585945f1de1c0f.zip
op-kernel-dev-3a9950781cccc0a2c219c9369e585945f1de1c0f.tar.gz
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_drv.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index 4d9edea..3e47f75 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -437,7 +437,6 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset)
DRM_ERROR("Failed allocating a device private struct.\n");
return -ENOMEM;
}
- memset(dev_priv, 0, sizeof(*dev_priv));
pci_set_master(dev->pdev);
OpenPOWER on IntegriCloud