dahdi_dynamic_loc: kmalloc/memset -> kzalloc
Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9563 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
29b0b48096
commit
3163002ad0
@ -179,11 +179,8 @@ static void *dahdi_dynamic_local_create(struct dahdi_span *span, char *address)
|
||||
if (key == -1 || id == -1)
|
||||
goto INVALID_ADDRESS;
|
||||
|
||||
d = kmalloc(sizeof(struct dahdi_dynamic_local), GFP_KERNEL);
|
||||
d = kzalloc(sizeof(*d), GFP_KERNEL);
|
||||
if (d) {
|
||||
/* Zero it out */
|
||||
memset(d, 0, sizeof(struct dahdi_dynamic_local));
|
||||
|
||||
d->key = key;
|
||||
d->id = id;
|
||||
d->span = span;
|
||||
|
Loading…
Reference in New Issue
Block a user