git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
net
/
irda
/
irqueue.c
diff --git
a/net/irda/irqueue.c
b/net/irda/irqueue.c
index
1ba8c71
..
1d26cd3
100644
(file)
--- a/
net/irda/irqueue.c
+++ b/
net/irda/irqueue.c
@@
-356,14
+356,13
@@
hashbin_t *hashbin_new(int type)
/*
* Allocate new hashbin
*/
/*
* Allocate new hashbin
*/
- hashbin = k
malloc( sizeof(hashbin_t
), GFP_ATOMIC);
+ hashbin = k
zalloc(sizeof(*hashbin
), GFP_ATOMIC);
if (!hashbin)
return NULL;
/*
* Initialize structure
*/
if (!hashbin)
return NULL;
/*
* Initialize structure
*/
- memset(hashbin, 0, sizeof(hashbin_t));
hashbin->hb_type = type;
hashbin->magic = HB_MAGIC;
//hashbin->hb_current = NULL;
hashbin->hb_type = type;
hashbin->magic = HB_MAGIC;
//hashbin->hb_current = NULL;