aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking/ifenslave.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/networking/ifenslave.c')
-rw-r--r--Documentation/networking/ifenslave.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Documentation/networking/ifenslave.c b/Documentation/networking/ifenslave.c
index f315d20d3867..545447ac503a 100644
--- a/Documentation/networking/ifenslave.c
+++ b/Documentation/networking/ifenslave.c
@@ -693,13 +693,7 @@ static int enslave(char *master_ifname, char *slave_ifname)
693 /* Older bonding versions would panic if the slave has no IP 693 /* Older bonding versions would panic if the slave has no IP
694 * address, so get the IP setting from the master. 694 * address, so get the IP setting from the master.
695 */ 695 */
696 res = set_if_addr(master_ifname, slave_ifname); 696 set_if_addr(master_ifname, slave_ifname);
697 if (res) {
698 fprintf(stderr,
699 "Slave '%s': Error: set address failed\n",
700 slave_ifname);
701 return res;
702 }
703 } else { 697 } else {
704 res = clear_if_addr(slave_ifname); 698 res = clear_if_addr(slave_ifname);
705 if (res) { 699 if (res) {
@@ -1085,7 +1079,6 @@ static int set_if_addr(char *master_ifname, char *slave_ifname)
1085 slave_ifname, ifra[i].req_name, 1079 slave_ifname, ifra[i].req_name,
1086 strerror(saved_errno)); 1080 strerror(saved_errno));
1087 1081
1088 return res;
1089 } 1082 }
1090 1083
1091 ipaddr = ifr.ifr_addr.sa_data; 1084 ipaddr = ifr.ifr_addr.sa_data;