ah4/ah6: remove useless NULL assignments
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 25 Nov 2008 09:05:09 +0000 (01:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Nov 2008 09:05:09 +0000 (01:05 -0800)
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>
net/ipv4/ah4.c
net/ipv6/ah6.c

index 3f20518..992ecd8 100644 (file)
@@ -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);
 }
 
index 7a8a013..13e330d 100644 (file)
@@ -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);
 }