diff options
Diffstat (limited to 'net/bridge/br_sysfs_if.c')
-rw-r--r-- | net/bridge/br_sysfs_if.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c index 1549b26ad4e5..dd595bd7fa82 100644 --- a/net/bridge/br_sysfs_if.c +++ b/net/bridge/br_sysfs_if.c | |||
@@ -209,21 +209,21 @@ static const struct brport_attribute *brport_attrs[] = { | |||
209 | #define to_brport_attr(_at) container_of(_at, struct brport_attribute, attr) | 209 | #define to_brport_attr(_at) container_of(_at, struct brport_attribute, attr) |
210 | #define to_brport(obj) container_of(obj, struct net_bridge_port, kobj) | 210 | #define to_brport(obj) container_of(obj, struct net_bridge_port, kobj) |
211 | 211 | ||
212 | static ssize_t brport_show(struct kobject * kobj, | 212 | static ssize_t brport_show(struct kobject *kobj, |
213 | struct attribute * attr, char * buf) | 213 | struct attribute *attr, char *buf) |
214 | { | 214 | { |
215 | struct brport_attribute * brport_attr = to_brport_attr(attr); | 215 | struct brport_attribute *brport_attr = to_brport_attr(attr); |
216 | struct net_bridge_port * p = to_brport(kobj); | 216 | struct net_bridge_port *p = to_brport(kobj); |
217 | 217 | ||
218 | return brport_attr->show(p, buf); | 218 | return brport_attr->show(p, buf); |
219 | } | 219 | } |
220 | 220 | ||
221 | static ssize_t brport_store(struct kobject * kobj, | 221 | static ssize_t brport_store(struct kobject *kobj, |
222 | struct attribute * attr, | 222 | struct attribute *attr, |
223 | const char * buf, size_t count) | 223 | const char *buf, size_t count) |
224 | { | 224 | { |
225 | struct brport_attribute * brport_attr = to_brport_attr(attr); | 225 | struct brport_attribute *brport_attr = to_brport_attr(attr); |
226 | struct net_bridge_port * p = to_brport(kobj); | 226 | struct net_bridge_port *p = to_brport(kobj); |
227 | ssize_t ret = -EINVAL; | 227 | ssize_t ret = -EINVAL; |
228 | char *endp; | 228 | char *endp; |
229 | unsigned long val; | 229 | unsigned long val; |