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:
Shaun Ruffell 2011-01-03 18:24:48 +00:00
parent 29b0b48096
commit 3163002ad0

View File

@ -179,11 +179,8 @@ static void *dahdi_dynamic_local_create(struct dahdi_span *span, char *address)
if (key == -1 || id == -1) if (key == -1 || id == -1)
goto INVALID_ADDRESS; goto INVALID_ADDRESS;
d = kmalloc(sizeof(struct dahdi_dynamic_local), GFP_KERNEL); d = kzalloc(sizeof(*d), GFP_KERNEL);
if (d) { if (d) {
/* Zero it out */
memset(d, 0, sizeof(struct dahdi_dynamic_local));
d->key = key; d->key = key;
d->id = id; d->id = id;
d->span = span; d->span = span;