hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/net/phonet/pn_dev.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * File: pn_dev.c
34 *
....@@ -7,20 +8,6 @@
78 *
89 * Authors: Sakari Ailus <sakari.ailus@nokia.com>
910 * Rémi Denis-Courmont
10
- *
11
- * This program is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License
13
- * version 2 as published by the Free Software Foundation.
14
- *
15
- * This program is distributed in the hope that it will be useful, but
16
- * WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23
- * 02110-1301 USA
2411 */
2512
2613 #include <linux/kernel.h>
....@@ -48,8 +35,6 @@
4835
4936 static struct phonet_net *phonet_pernet(struct net *net)
5037 {
51
- BUG_ON(!net);
52
-
5338 return net_generic(net, phonet_net_id);
5439 }
5540