mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[IRDA]: Use kmemdup where applicable
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
8b2ed4bba4
commit
b3ab09f9e1
4 changed files with 4 additions and 10 deletions
|
@ -356,14 +356,13 @@ hashbin_t *hashbin_new(int type)
|
|||
/*
|
||||
* Allocate new hashbin
|
||||
*/
|
||||
hashbin = kmalloc( sizeof(hashbin_t), GFP_ATOMIC);
|
||||
hashbin = kzalloc(sizeof(*hashbin), GFP_ATOMIC);
|
||||
if (!hashbin)
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
* Initialize structure
|
||||
*/
|
||||
memset(hashbin, 0, sizeof(hashbin_t));
|
||||
hashbin->hb_type = type;
|
||||
hashbin->magic = HB_MAGIC;
|
||||
//hashbin->hb_current = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue