Commit 6daad372 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

ah4/ah6: remove useless NULL assignments

struct will be kfreed in a moment, so...
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 69d728ba
...@@ -293,9 +293,7 @@ static void ah_destroy(struct xfrm_state *x) ...@@ -293,9 +293,7 @@ static void ah_destroy(struct xfrm_state *x)
return; return;
kfree(ahp->work_icv); kfree(ahp->work_icv);
ahp->work_icv = NULL;
crypto_free_hash(ahp->tfm); crypto_free_hash(ahp->tfm);
ahp->tfm = NULL;
kfree(ahp); kfree(ahp);
} }
......
...@@ -509,9 +509,7 @@ static void ah6_destroy(struct xfrm_state *x) ...@@ -509,9 +509,7 @@ static void ah6_destroy(struct xfrm_state *x)
return; return;
kfree(ahp->work_icv); kfree(ahp->work_icv);
ahp->work_icv = NULL;
crypto_free_hash(ahp->tfm); crypto_free_hash(ahp->tfm);
ahp->tfm = NULL;
kfree(ahp); kfree(ahp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment