]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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 3f205181712d3f7b901ef7bf43476e410a588633..992ecd8662e2d9b1a7949be449c971eb3faf6c5a 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 7a8a01369e5ca2a7fdd9d01888d7d336d9117a74..13e330d89178f6d84bbab9a1718f1498cfefc2f6 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);
 }