hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/bridge/br_sysfs_if.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Sysfs attributes of bridge ports
34 * Linux ethernet bridge
45 *
56 * Authors:
67 * Stephen Hemminger <shemminger@osdl.org>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version
11
- * 2 of the License, or (at your option) any later version.
128 */
139
1410 #include <linux/capability.h>
....@@ -322,9 +318,6 @@
322318
323319 if (!rtnl_trylock())
324320 return restart_syscall();
325
-
326
- if (!p->dev || !p->br)
327
- goto out_unlock;
328321
329322 if (brport_attr->store_raw) {
330323 char *buf_copy;