summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2006-01-11 19:28:02 +0000
committerMauro Carvalho Chehab <devnull@localhost>2006-01-11 19:28:02 +0000
commit069637ed9609cb009c57d2bf1039e69812b2304b (patch)
tree043bf8adc38ec355490eff08f7bbdfe90a230456 /linux/drivers/media/video/em28xx
parent40aca7dd04e8f2d3e3a8cddd5d3d8c3d596c978f (diff)
downloadmediapointer-dvb-s2-069637ed9609cb009c57d2bf1039e69812b2304b.tar.gz
mediapointer-dvb-s2-069637ed9609cb009c57d2bf1039e69812b2304b.tar.bz2
From: Panagiotis Issaris <takis@issaris.org>
Conversions from kmalloc+memset to k(z|c)alloc Conversions from kmalloc+memset to k(z|c)alloc. kernel-sync Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/em28xx')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-video.c b/linux/drivers/media/video/em28xx/em28xx-video.c
index 0e5489575..4dafd59e8 100644
--- a/linux/drivers/media/video/em28xx/em28xx-video.c
+++ b/linux/drivers/media/video/em28xx/em28xx-video.c
@@ -2054,12 +2054,11 @@ static int em28xx_usb_probe(struct usb_interface *interface,
}
/* allocate memory for our device state and initialize it */
- dev = kmalloc(sizeof(*dev), GFP_KERNEL);
+ dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL) {
em28xx_err(DRIVER_NAME ": out of memory!\n");
return -ENOMEM;
}
- memset(dev, 0, sizeof(*dev));
/* compute alternate max packet sizes */
uif = udev->actconfig->interface[0];