hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/ipv6/mip6.c
....@@ -1,19 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C)2003-2006 Helsinki University of Technology
34 * Copyright (C)2003-2006 USAGI/WIDE Project
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
175 */
186 /*
197 * Authors:
....@@ -511,10 +499,8 @@
511499 {
512500 if (rawv6_mh_filter_unregister(mip6_mh_filter) < 0)
513501 pr_info("%s: can't remove rawv6 mh filter\n", __func__);
514
- if (xfrm_unregister_type(&mip6_rthdr_type, AF_INET6) < 0)
515
- pr_info("%s: can't remove xfrm type(rthdr)\n", __func__);
516
- if (xfrm_unregister_type(&mip6_destopt_type, AF_INET6) < 0)
517
- pr_info("%s: can't remove xfrm type(destopt)\n", __func__);
502
+ xfrm_unregister_type(&mip6_rthdr_type, AF_INET6);
503
+ xfrm_unregister_type(&mip6_destopt_type, AF_INET6);
518504 }
519505
520506 module_init(mip6_init);