mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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 <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
52f9d66844
commit
f230586994
2 changed files with 0 additions and 16 deletions
|
@ -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()
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue