diff options
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index 073d25f357bb..f0dde1888c71 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -1218,11 +1218,6 @@ static int alb_set_mac_address(struct bonding *bond, void *addr) | |||
1218 | } | 1218 | } |
1219 | 1219 | ||
1220 | bond_for_each_slave(bond, slave, i) { | 1220 | bond_for_each_slave(bond, slave, i) { |
1221 | if (slave->dev->set_mac_address == NULL) { | ||
1222 | res = -EOPNOTSUPP; | ||
1223 | goto unwind; | ||
1224 | } | ||
1225 | |||
1226 | /* save net_device's current hw address */ | 1221 | /* save net_device's current hw address */ |
1227 | memcpy(tmp_addr, slave->dev->dev_addr, ETH_ALEN); | 1222 | memcpy(tmp_addr, slave->dev->dev_addr, ETH_ALEN); |
1228 | 1223 | ||
@@ -1231,9 +1226,8 @@ static int alb_set_mac_address(struct bonding *bond, void *addr) | |||
1231 | /* restore net_device's hw address */ | 1226 | /* restore net_device's hw address */ |
1232 | memcpy(slave->dev->dev_addr, tmp_addr, ETH_ALEN); | 1227 | memcpy(slave->dev->dev_addr, tmp_addr, ETH_ALEN); |
1233 | 1228 | ||
1234 | if (res) { | 1229 | if (res) |
1235 | goto unwind; | 1230 | goto unwind; |
1236 | } | ||
1237 | } | 1231 | } |
1238 | 1232 | ||
1239 | return 0; | 1233 | return 0; |