diff options
Diffstat (limited to 'net/bridge/br_sysfs_br.c')
-rw-r--r-- | net/bridge/br_sysfs_br.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c index ce10464716a7..01a22ad0cc75 100644 --- a/net/bridge/br_sysfs_br.c +++ b/net/bridge/br_sysfs_br.c | |||
@@ -353,19 +353,19 @@ static ssize_t brforward_read(struct kobject *kobj, char *buf, | |||
353 | if (off % sizeof(struct __fdb_entry) != 0) | 353 | if (off % sizeof(struct __fdb_entry) != 0) |
354 | return -EINVAL; | 354 | return -EINVAL; |
355 | 355 | ||
356 | n = br_fdb_fillbuf(br, buf, | 356 | n = br_fdb_fillbuf(br, buf, |
357 | count / sizeof(struct __fdb_entry), | 357 | count / sizeof(struct __fdb_entry), |
358 | off / sizeof(struct __fdb_entry)); | 358 | off / sizeof(struct __fdb_entry)); |
359 | 359 | ||
360 | if (n > 0) | 360 | if (n > 0) |
361 | n *= sizeof(struct __fdb_entry); | 361 | n *= sizeof(struct __fdb_entry); |
362 | 362 | ||
363 | return n; | 363 | return n; |
364 | } | 364 | } |
365 | 365 | ||
366 | static struct bin_attribute bridge_forward = { | 366 | static struct bin_attribute bridge_forward = { |
367 | .attr = { .name = SYSFS_BRIDGE_FDB, | 367 | .attr = { .name = SYSFS_BRIDGE_FDB, |
368 | .mode = S_IRUGO, | 368 | .mode = S_IRUGO, |
369 | .owner = THIS_MODULE, }, | 369 | .owner = THIS_MODULE, }, |
370 | .read = brforward_read, | 370 | .read = brforward_read, |
371 | }; | 371 | }; |
@@ -401,7 +401,7 @@ int br_sysfs_addbr(struct net_device *dev) | |||
401 | goto out2; | 401 | goto out2; |
402 | } | 402 | } |
403 | 403 | ||
404 | 404 | ||
405 | kobject_set_name(&br->ifobj, SYSFS_BRIDGE_PORT_SUBDIR); | 405 | kobject_set_name(&br->ifobj, SYSFS_BRIDGE_PORT_SUBDIR); |
406 | br->ifobj.ktype = NULL; | 406 | br->ifobj.ktype = NULL; |
407 | br->ifobj.kset = NULL; | 407 | br->ifobj.kset = NULL; |