ah4/ah6: remove useless NULL assignments

struct will be kfreed in a moment, so...

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Alexey Dobriyan 2008-11-25 01:05:09 -08:00 committed by David S. Miller
parent 69d728baf6
commit 6daad37230
2 changed files with 0 additions and 4 deletions

View File

@ -293,9 +293,7 @@ static void ah_destroy(struct xfrm_state *x)
return;
kfree(ahp->work_icv);
ahp->work_icv = NULL;
crypto_free_hash(ahp->tfm);
ahp->tfm = NULL;
kfree(ahp);
}

View File

@ -509,9 +509,7 @@ static void ah6_destroy(struct xfrm_state *x)
return;
kfree(ahp->work_icv);
ahp->work_icv = NULL;
crypto_free_hash(ahp->tfm);
ahp->tfm = NULL;
kfree(ahp);
}