diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-20 22:43:05 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-20 22:43:05 (GMT) |
commit | 7de2c5b6ae9c99e7b4213c06ed5264c24d943a35 (patch) | |
tree | f546f54479c737d9ec5fd79fb3d3fae891c7f3db /drivers/staging/csr/csr_framework_ext.c | |
parent | 70128792b7802efcf485e9b62249cf8a639187d8 (diff) | |
download | linux-fsl-qoriq-7de2c5b6ae9c99e7b4213c06ed5264c24d943a35.tar.xz |
staging: csr: remove CsrMemCalloc()
No one calls it, so it doesn't need to be here.
Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr/csr_framework_ext.c')
-rw-r--r-- | drivers/staging/csr/csr_framework_ext.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/staging/csr/csr_framework_ext.c b/drivers/staging/csr/csr_framework_ext.c index a34d263..771a369 100644 --- a/drivers/staging/csr/csr_framework_ext.c +++ b/drivers/staging/csr/csr_framework_ext.c @@ -149,35 +149,6 @@ EXPORT_SYMBOL_GPL(CsrThreadSleep); /*----------------------------------------------------------------------------* * NAME - * CsrMemCalloc - * - * DESCRIPTION - * Allocate dynamic memory of a given size calculated as the - * numberOfElements times the elementSize. - * - * RETURNS - * Pointer to allocated memory, or NULL in case of failure. - * Allocated memory is zero initialised. - * - *----------------------------------------------------------------------------*/ -void *CsrMemCalloc(size_t numberOfElements, size_t elementSize) -{ - void *buf; - size_t size; - - size = numberOfElements * elementSize; - - buf = kmalloc(size, GFP_KERNEL); - if (buf != NULL) - { - memset(buf, 0, size); - } - - return buf; -} - -/*----------------------------------------------------------------------------* - * NAME * CsrMemAllocDma * * DESCRIPTION |