You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[IRDA]: Use kmemdup where applicable
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
committed by
David S. Miller
parent
8b2ed4bba4
commit
b3ab09f9e1
+1
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user