mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[NET]: kfree cleanup
From: Jesper Juhl <[email protected]> This is the net/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in net/. Signed-off-by: Jesper Juhl <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Acked-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
parent
ac7c98eca8
commit
a51482bde2
47 changed files with 99 additions and 191 deletions
|
|
@ -62,14 +62,10 @@ static void xfrm_state_gc_destroy(struct xfrm_state *x)
|
|||
{
|
||||
if (del_timer(&x->timer))
|
||||
BUG();
|
||||
if (x->aalg)
|
||||
kfree(x->aalg);
|
||||
if (x->ealg)
|
||||
kfree(x->ealg);
|
||||
if (x->calg)
|
||||
kfree(x->calg);
|
||||
if (x->encap)
|
||||
kfree(x->encap);
|
||||
kfree(x->aalg);
|
||||
kfree(x->ealg);
|
||||
kfree(x->calg);
|
||||
kfree(x->encap);
|
||||
if (x->type) {
|
||||
x->type->destructor(x);
|
||||
xfrm_put_type(x->type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue