mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:30:58 +07:00
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:
parent
69d728baf6
commit
6daad37230
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user