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>
This commit is contained in:
Wei Yongjun
2012-08-27 07:07:43 +00:00
committed by Dave Airlie
parent cd004b3f4c
commit 3a9950781c
2 changed files with 0 additions and 2 deletions

View File

@@ -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);