mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] vmwgfx: Remove unnecessary memset(,0,)
@ 2011-01-12 21:21 Joe Perches
  2011-01-12 21:21 ` [PATCH 2/3] bna: " Joe Perches
  2011-01-12 21:21 ` [PATCH 3/3] staging: brcm80211: " Joe Perches
  0 siblings, 2 replies; 5+ messages in thread
From: Joe Perches @ 2011-01-12 21:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: David Airlie, dri-devel

kzalloc'd memory doesn't need a memset to 0.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |    1 -
 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 10ca97e..ed18932 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -248,7 +248,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));
 
 	dev_priv->dev = dev;
 	dev_priv->vmw_chipset = chipset;
-- 
1.7.3.3.398.g0b0cd.dirty


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-13  3:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-12 21:21 [PATCH 1/3] vmwgfx: Remove unnecessary memset(,0,) Joe Perches
2011-01-12 21:21 ` [PATCH 2/3] bna: " Joe Perches
2011-01-12 22:55   ` Rasesh Mody
2011-01-13  3:01     ` David Miller
2011-01-12 21:21 ` [PATCH 3/3] staging: brcm80211: " Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®