staging: dgnc: driver.c and .h: removes dgnc_driver_kzmalloc func
authorLidza Louina <lidza.louina@gmail.com>
Wed, 28 Aug 2013 02:13:28 +0000 (22:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 04:56:32 +0000 (21:56 -0700)
This patch removes the dgnc_driver_kzmalloc function from
driver.c and driver.h. A previous patch replaced all
dgnc_driver_kzmalloc function calls with kzalloc.

Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c
drivers/staging/dgnc/dgnc_driver.h

index 197c325baa57b0ef4b7551a69b4bfe2995f93a60..f8c1e22585d6cf81f3a4a52262b73608ab68f333 100644 (file)
@@ -889,21 +889,6 @@ static void dgnc_init_globals(void)
  *
  ************************************************************************/
 
-
-/*
- * dgnc_driver_kzmalloc()
- *
- * Malloc and clear memory,
- */
-void *dgnc_driver_kzmalloc(size_t size, int priority)
-{
-       void *p = kmalloc(size, priority);
-       if(p)
-               memset(p, 0, size);
-       return(p);
-}
-
-
 /*
  * dgnc_ms_sleep()
  *
index e77303cf6d5398bc151984890c1b6f03b9a18272..218b15dccb7dc970bef7bd1d56d491b51ad16884 100644 (file)
@@ -542,7 +542,6 @@ struct channel_t {
  *************************************************************************/
 
 extern int             dgnc_ms_sleep(ulong ms);
-extern void            *dgnc_driver_kzmalloc(size_t size, int priority);
 extern char            *dgnc_ioctl_name(int cmd);
 
 /*