From: Lidza Louina Date: Wed, 28 Aug 2013 02:13:28 +0000 (-0400) Subject: staging: dgnc: driver.c and .h: removes dgnc_driver_kzmalloc func X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f230586994c7f571356570634b942f88bf2772bb;p=linux-beck.git staging: dgnc: driver.c and .h: removes dgnc_driver_kzmalloc func 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 197c325baa57..f8c1e22585d6 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -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() * diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h index e77303cf6d53..218b15dccb7d 100644 --- a/drivers/staging/dgnc/dgnc_driver.h +++ b/drivers/staging/dgnc/dgnc_driver.h @@ -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); /*