]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/tipc/user_reg.c
Merge ../linux-2.6-watchdog-mm
[linux-2.6-omap-h63xx.git] / net / tipc / user_reg.c
index 1e3ae57c722872f2e2d74d28891ecb39d53d0f21..04d1b9be9c5197ccf4ec6c9c9a401985959d50a0 100644 (file)
@@ -82,9 +82,8 @@ static int reg_init(void)
        
        spin_lock_bh(&reg_lock);
        if (!users) {
-               users = (struct tipc_user *)kmalloc(USER_LIST_SIZE, GFP_ATOMIC);
+               users = kzalloc(USER_LIST_SIZE, GFP_ATOMIC);
                if (users) {
-                       memset(users, 0, USER_LIST_SIZE);
                        for (i = 1; i <= MAX_USERID; i++) {
                                users[i].next = i - 1;
                        }