some kmalloc/memset ->kzalloc (tree wide)
[deliverable/linux.git] / drivers / net / ppp_mppe.c
index f3655fd772f5b765c7f0e33fb693480a255135ae..f79cf87a2bff555aef80eba31da6c17eb340d65c 100644 (file)
@@ -200,11 +200,10 @@ static void *mppe_alloc(unsigned char *options, int optlen)
            || options[0] != CI_MPPE || options[1] != CILEN_MPPE)
                goto out;
 
-       state = (struct ppp_mppe_state *) kmalloc(sizeof(*state), GFP_KERNEL);
+       state = kzalloc(sizeof(*state), GFP_KERNEL);
        if (state == NULL)
                goto out;
 
-       memset(state, 0, sizeof(*state));
 
        state->arc4 = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC);
        if (IS_ERR(state->arc4)) {
This page took 0.025133 seconds and 5 git commands to generate.