diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-11-21 01:18:33 -0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:30:17 -0800 |
commit | b3ab09f9e1681916df349d54232fbb3f8a79bfa5 (patch) | |
tree | 3eb5667ee2efd5ea0355f881cb02898cd5658192 /net/irda/irqueue.c | |
parent | 8b2ed4bba45b7ca8e378d45f82f3f32f651e0a42 (diff) | |
download | linux-b3ab09f9e1681916df349d54232fbb3f8a79bfa5.tar.gz linux-b3ab09f9e1681916df349d54232fbb3f8a79bfa5.tar.bz2 linux-b3ab09f9e1681916df349d54232fbb3f8a79bfa5.zip |
[IRDA]: Use kmemdup where applicable
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/irda/irqueue.c')
-rw-r--r-- | net/irda/irqueue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/irda/irqueue.c b/net/irda/irqueue.c index 1ba8c7106639..1d26cd33ea13 100644 --- a/net/irda/irqueue.c +++ b/net/irda/irqueue.c @@ -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; |