]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - net/ipv6/esp6_offload.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec...
[mirror_ubuntu-hirsute-kernel.git] / net / ipv6 / esp6_offload.c
index d0d8528b294a53dd80f903bd6cd4624e11ae7917..e31626ffccd18ef2b1a7303ab1c1ef2ef38e9d51 100644 (file)
@@ -336,9 +336,7 @@ static int __init esp6_offload_init(void)
 
 static void __exit esp6_offload_exit(void)
 {
-       if (xfrm_unregister_type_offload(&esp6_type_offload, AF_INET6) < 0)
-               pr_info("%s: can't remove xfrm type offload\n", __func__);
-
+       xfrm_unregister_type_offload(&esp6_type_offload, AF_INET6);
        inet6_del_offload(&esp6_offload, IPPROTO_ESP);
 }