diff options
author | Panagiotis Issaris <takis@issaris.org> | 2006-01-11 16:40:56 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-11 16:40:56 -0500 |
commit | 7408187d223f63d46a13b6a35b8f96b032c2f623 (patch) | |
tree | 425a459f760295de488f57e3f97b034aaa76a78d /drivers/media/video/videodev.c | |
parent | 0b3af1b6df82cfdb54ae294ed860263011fa0408 (diff) |
V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
Conversions from kmalloc+memset to k(z|c)alloc.
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 'drivers/media/video/videodev.c')
-rw-r--r-- | drivers/media/video/videodev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index 9a9902c56ae7..d5be25987142 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c | |||
@@ -52,10 +52,7 @@ struct video_device *video_device_alloc(void) | |||
52 | { | 52 | { |
53 | struct video_device *vfd; | 53 | struct video_device *vfd; |
54 | 54 | ||
55 | vfd = kmalloc(sizeof(*vfd),GFP_KERNEL); | 55 | vfd = kzalloc(sizeof(*vfd),GFP_KERNEL); |
56 | if (NULL == vfd) | ||
57 | return NULL; | ||
58 | memset(vfd,0,sizeof(*vfd)); | ||
59 | return vfd; | 56 | return vfd; |
60 | } | 57 | } |
61 | 58 | ||