diff options
author | Matthew Fredrickson <creslin@digium.com> | 2008-08-29 21:46:26 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2008-08-29 21:46:26 +0000 |
commit | 1745effa83d6a5bce12f188f9cb3ddf8f8520a08 (patch) | |
tree | bb4b7bf82cc25e2b8c4b216414b6ead5e0aaab6f /drivers/dahdi/dahdi-base.c | |
parent | 55d9e860536565d19602de6cce117455c5ba6f79 (diff) |
Remove useless kzalloc
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4856 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 115a548..5dcfdb5 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -3477,7 +3477,7 @@ static int dahdi_common_ioctl(struct inode *node, struct file *file, unsigned in if ((i < 0) || (i > DAHDI_MAX_CHANNELS) || !chans[i]) return(-EINVAL); if (!(chans[i]->flags & DAHDI_FLAG_AUDIO)) return (-EINVAL); - if (!(rxgain = kzalloc(512, GFP_KERNEL))) + if (!(rxgain = kmalloc(512, GFP_KERNEL))) return -ENOMEM; stack.gain.chan = i; /* put the span # in here */ |