[PATCH] kernel core: replace kmalloc+memset with kzalloc
[deliverable/linux.git] / kernel / futex.c
index af7b81cbde30391285ffa77beb4716c7f868ba21..7c0d0d4fa7f76cddfb098c4b68fa766b03f86c5f 100644 (file)
@@ -324,12 +324,11 @@ static int refill_pi_state_cache(void)
        if (likely(current->pi_state_cache))
                return 0;
 
-       pi_state = kmalloc(sizeof(*pi_state), GFP_KERNEL);
+       pi_state = kzalloc(sizeof(*pi_state), GFP_KERNEL);
 
        if (!pi_state)
                return -ENOMEM;
 
-       memset(pi_state, 0, sizeof(*pi_state));
        INIT_LIST_HEAD(&pi_state->list);
        /* pi_mutex gets initialized later */
        pi_state->owner = NULL;
This page took 0.025491 seconds and 5 git commands to generate.