This patch removes the dgnc_driver_kzmalloc function from driver.c. The patch that follows replaces all dgnc_driver_kzmalloc functions calls with kzalloc. Signed-off-by: Lidza Louina <lidza.louina@xxxxxxxxx> --- drivers/staging/dgnc/dgnc_driver.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 8032368..b8a7597 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -895,21 +895,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_mbuf() * -- 1.8.1.2 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel