]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
vti4: removed duplicate log message.
authorJeremy Sowden <jeremy@azazel.net>
Tue, 19 Mar 2019 15:39:21 +0000 (15:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2020 15:24:12 +0000 (17:24 +0200)
commit 01ce31c57b3f07c91c9d45bbaf126124cce83a5d upstream.

Removed info log-message if ipip tunnel registration fails during
module-initialization: it adds nothing to the error message that is
written on all failures.

Fixes: dd9ee3444014e ("vti4: Fix a ipip packet processing bug in 'IPCOMP' virtual tunnel")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_vti.c

index b930ab5cf140375b7cecacbac7fe8fac05573deb..c1693d75e19687f47c9c5cef79fb44fb6b5fb94c 100644 (file)
@@ -681,10 +681,8 @@ static int __init vti_init(void)
 
        msg = "ipip tunnel";
        err = xfrm4_tunnel_register(&ipip_handler, AF_INET);
-       if (err < 0) {
-               pr_info("%s: cant't register tunnel\n",__func__);
+       if (err < 0)
                goto xfrm_tunnel_failed;
-       }
 
        msg = "netlink interface";
        err = rtnl_link_register(&vti_link_ops);