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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
0b3af1b6df
commit
7408187d22
@ -782,10 +782,9 @@ struct dvb_frontend* bcm3510_attach(const struct bcm3510_config *config,
|
||||
bcm3510_register_value v;
|
||||
|
||||
/* allocate memory for the internal state */
|
||||
state = kmalloc(sizeof(struct bcm3510_state), GFP_KERNEL);
|
||||
state = kzalloc(sizeof(struct bcm3510_state), GFP_KERNEL);
|
||||
if (state == NULL)
|
||||
goto error;
|
||||
memset(state,0,sizeof(struct bcm3510_state));
|
||||
|
||||
/* setup the state */
|
||||
|
||||
|
Reference in New Issue
Block a user