Skip to content

Commit

Permalink
bridge: fix build for CONFIG_SYSFS disabled
Browse files Browse the repository at this point in the history
Fix build when CONFIG_SYSFS is not enabled:
net/bridge/br_if.c:136: error: 'struct net_bridge_port' has no member named 'sysfs_name'

Note: dev->name == sysfs_name except when change name is in
progress, and we are protected from that by RTNL mutex.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Randy Dunlap authored and David S. Miller committed May 18, 2010
1 parent e7971c8 commit b3bcb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bridge/br_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void del_nbp(struct net_bridge_port *p)
struct net_bridge *br = p->br;
struct net_device *dev = p->dev;

sysfs_remove_link(br->ifobj, p->sysfs_name);
sysfs_remove_link(br->ifobj, p->dev->name);

dev_set_promiscuity(dev, -1);

Expand Down

0 comments on commit b3bcb72

Please sign in to comment.