aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-audio.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-01-19 22:37:11 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:41 -0500
commitca545f7c39476c6c4c6e639452180a2b38342669 (patch)
treee9751274759bcdf51bff577f55a030d4f23dca90 /drivers/media/video/pvrusb2/pvrusb2-audio.c
parenteca8ebfc11d1935a7dd4c59cb8defb5bdff44ecd (diff)
V4L/DVB (5091): Pvrusb2: Use kzalloc in place of kmalloc/memset pairs
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-audio.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-audio.c b/drivers/media/video/pvrusb2/pvrusb2-audio.c
index 5d30c9366144..7e61d4a17846 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-audio.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-audio.c
@@ -152,9 +152,8 @@ int pvr2_i2c_msp3400_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
152 struct pvr2_msp3400_handler *ctxt; 152 struct pvr2_msp3400_handler *ctxt;
153 if (cp->handler) return 0; 153 if (cp->handler) return 0;
154 154
155 ctxt = kmalloc(sizeof(*ctxt),GFP_KERNEL); 155 ctxt = kzalloc(sizeof(*ctxt),GFP_KERNEL);
156 if (!ctxt) return 0; 156 if (!ctxt) return 0;
157 memset(ctxt,0,sizeof(*ctxt));
158 157
159 ctxt->i2c_handler.func_data = ctxt; 158 ctxt->i2c_handler.func_data = ctxt;
160 ctxt->i2c_handler.func_table = &msp3400_funcs; 159 ctxt->i2c_handler.func_table = &msp3400_funcs;