diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-25 01:05:09 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 01:05:09 -0800 |
commit | 6daad37230ab02bb593d179d704079d4b5912bd7 (patch) | |
tree | 42b08ba70a788dea44af80c49584f23d08e12a44 | |
parent | 69d728baf620839d1a3c874eecac316729f89de4 (diff) | |
download | kernel_goldelico_gta04-6daad37230ab02bb593d179d704079d4b5912bd7.zip kernel_goldelico_gta04-6daad37230ab02bb593d179d704079d4b5912bd7.tar.gz kernel_goldelico_gta04-6daad37230ab02bb593d179d704079d4b5912bd7.tar.bz2 |
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>
-rw-r--r-- | net/ipv4/ah4.c | 2 | ||||
-rw-r--r-- | net/ipv6/ah6.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index 3f20518..992ecd8 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c @@ -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); } diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 7a8a013..13e330d 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c @@ -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); } |