diff options
author | Mike Isely <isely@pobox.com> | 2007-01-19 21:37:11 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-01-19 21:37:11 -0600 |
commit | 7994491da22f0e62bd89c2d404d0edae2077bc04 (patch) | |
tree | 933b990b86c0161191801039b8f88af70ebe5a0e /linux/drivers/media/video/pvrusb2/pvrusb2-io.c | |
parent | 407531b06687d03d31880527a6383317bc579559 (diff) | |
download | mediapointer-dvb-s2-7994491da22f0e62bd89c2d404d0edae2077bc04.tar.gz mediapointer-dvb-s2-7994491da22f0e62bd89c2d404d0edae2077bc04.tar.bz2 |
pvrusb2: Use kzalloc in place of kmalloc/memset pairs
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-io.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-io.c b/linux/drivers/media/video/pvrusb2/pvrusb2-io.c index 61c553ddf..ef7293bf1 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-io.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-io.c @@ -498,9 +498,8 @@ static void buffer_complete(struct urb *urb) struct pvr2_stream *pvr2_stream_create(void) { struct pvr2_stream *sp; - sp = kmalloc(sizeof(*sp),GFP_KERNEL); + sp = kzalloc(sizeof(*sp),GFP_KERNEL); if (!sp) return sp; - memset(sp,0,sizeof(*sp)); pvr2_trace(PVR2_TRACE_INIT,"pvr2_stream_create: sp=%p",sp); pvr2_stream_init(sp); return sp; |