提交 6daad372 编写于 作者: A Alexey Dobriyan 提交者: David S. Miller

ah4/ah6: remove useless NULL assignments

struct will be kfreed in a moment, so...
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 69d728ba
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册