diff options
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 72bb0f6cc9bf..e718144c5cfa 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -118,7 +118,10 @@ static ssize_t bonding_store_bonds(struct class *cls, | |||
118 | pr_info("%s is being created...\n", ifname); | 118 | pr_info("%s is being created...\n", ifname); |
119 | rv = bond_create(net, ifname); | 119 | rv = bond_create(net, ifname); |
120 | if (rv) { | 120 | if (rv) { |
121 | pr_info("Bond creation failed.\n"); | 121 | if (rv == -EEXIST) |
122 | pr_info("%s already exists.\n", ifname); | ||
123 | else | ||
124 | pr_info("%s creation failed.\n", ifname); | ||
122 | res = rv; | 125 | res = rv; |
123 | } | 126 | } |
124 | } else if (command[0] == '-') { | 127 | } else if (command[0] == '-') { |