]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/ah4.c
Merge tag 'rpmsg-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson...
[linux.git] / net / ipv4 / ah4.c
index 9c3afd550612a8322649357749ca9cd474a31ac2..974179b3b31449e4687045f347973888bbadfbcf 100644 (file)
@@ -590,8 +590,7 @@ static void __exit ah4_fini(void)
 {
        if (xfrm4_protocol_deregister(&ah4_protocol, IPPROTO_AH) < 0)
                pr_info("%s: can't remove protocol\n", __func__);
-       if (xfrm_unregister_type(&ah_type, AF_INET) < 0)
-               pr_info("%s: can't remove xfrm type\n", __func__);
+       xfrm_unregister_type(&ah_type, AF_INET);
 }
 
 module_init(ah4_init);