Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2305869 authored by Lidza Louina's avatar Lidza Louina Committed by Greg Kroah-Hartman
Browse files

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: default avatarLidza Louina <lidza.louina@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 52f9d668
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -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()
 *
+0 −1
Original line number Diff line number Diff line
@@ -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);

/*