Skip to content

Commit

Permalink
ah4/ah6: remove useless NULL assignments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Nov 25, 2008
1 parent 69d728b commit 6daad37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions net/ipv4/ah4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 0 additions & 2 deletions net/ipv6/ah6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6daad37

Please sign in to comment.