X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Firda%2Firqueue.c;h=1d26cd33ea13af07bbc22e53df6ce54c02f3e759;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=b0dd3ea35999698d2d577de56d1bef0ff35b248c;hpb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;p=linux-2.6.git diff --git a/net/irda/irqueue.c b/net/irda/irqueue.c index b0dd3ea35..1d26cd33e 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; @@ -822,7 +821,6 @@ void* hashbin_find_next( hashbin_t* hashbin, long hashv, const char* name, return entry; } -EXPORT_SYMBOL(hashbin_find_next); /* * Function hashbin_get_first (hashbin)