summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-01-19 21:37:11 -0600
committerMike Isely <isely@pobox.com>2007-01-19 21:37:11 -0600
commit7994491da22f0e62bd89c2d404d0edae2077bc04 (patch)
tree933b990b86c0161191801039b8f88af70ebe5a0e /linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c
parent407531b06687d03d31880527a6383317bc579559 (diff)
downloadmediapointer-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-ioread.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c b/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c
index 28385b0c9..c42eef3c2 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.c
@@ -96,10 +96,9 @@ static void pvr2_ioread_done(struct pvr2_ioread *cp)
struct pvr2_ioread *pvr2_ioread_create(void)
{
struct pvr2_ioread *cp;
- cp = kmalloc(sizeof(*cp),GFP_KERNEL);
+ cp = kzalloc(sizeof(*cp),GFP_KERNEL);
if (!cp) return NULL;
pvr2_trace(PVR2_TRACE_STRUCT,"pvr2_ioread_create id=%p",cp);
- memset(cp,0,sizeof(*cp));
if (pvr2_ioread_init(cp) < 0) {
kfree(cp);
return NULL;