.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Sysfs attributes of bridge ports |
---|
3 | 4 | * Linux ethernet bridge |
---|
4 | 5 | * |
---|
5 | 6 | * Authors: |
---|
6 | 7 | * 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. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/capability.h> |
---|
.. | .. |
---|
322 | 318 | |
---|
323 | 319 | if (!rtnl_trylock()) |
---|
324 | 320 | return restart_syscall(); |
---|
325 | | - |
---|
326 | | - if (!p->dev || !p->br) |
---|
327 | | - goto out_unlock; |
---|
328 | 321 | |
---|
329 | 322 | if (brport_attr->store_raw) { |
---|
330 | 323 | char *buf_copy; |
---|