hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/6lowpan/core.c
....@@ -1,11 +1,5 @@
1
-/* This program is free software; you can redistribute it and/or modify
2
- * it under the terms of the GNU General Public License version 2
3
- * as published by the Free Software Foundation.
4
- *
5
- * This program is distributed in the hope that it will be useful,
6
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
7
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8
- * GNU General Public License for more details.
1
+// SPDX-License-Identifier: GPL-2.0-only
2
+/*
93 *
104 * Authors:
115 * (C) 2015 Pengutronix, Alexander Aring <aar@pengutronix.de>
....@@ -48,9 +42,7 @@
4842 if (ret < 0)
4943 return ret;
5044
51
- ret = lowpan_dev_debugfs_init(dev);
52
- if (ret < 0)
53
- unregister_netdevice(dev);
45
+ lowpan_dev_debugfs_init(dev);
5446
5547 return ret;
5648 }
....@@ -158,9 +150,7 @@
158150 {
159151 int ret;
160152
161
- ret = lowpan_debugfs_init();
162
- if (ret < 0)
163
- return ret;
153
+ lowpan_debugfs_init();
164154
165155 ret = register_netdevice_notifier(&lowpan_notifier);
166156 if (ret < 0) {