Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74716
b: refs/heads/master
c: 1dcdcd6
h: refs/heads/master
v: v3
  • Loading branch information
Wagner Ferenc authored and Jeff Garzik committed Dec 7, 2007
1 parent cf77f5f commit c3d3589
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b88436651b612be8c29b169af832d80f00f94b7f
refs/heads/master: 1dcdcd69549c8e439fbe97a94ff0332ed8a55558
9 changes: 6 additions & 3 deletions trunk/drivers/net/bonding/bond_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ static ssize_t bonding_show_bonds(struct class *cls, char *buf)
}
res += sprintf(buf + res, "%s ", bond->dev->name);
}
if (res) buf[res-1] = '\n'; /* eat the leftover space */
if (res)
buf[res-1] = '\n'; /* eat the leftover space */
up_read(&(bonding_rwsem));
return res;
}
Expand Down Expand Up @@ -239,7 +240,8 @@ static ssize_t bonding_show_slaves(struct device *d,
res += sprintf(buf + res, "%s ", slave->dev->name);
}
read_unlock(&bond->lock);
if (res) buf[res-1] = '\n'; /* eat the leftover space */
if (res)
buf[res-1] = '\n'; /* eat the leftover space */
return res;
}

Expand Down Expand Up @@ -705,7 +707,8 @@ static ssize_t bonding_show_arp_targets(struct device *d,
res += sprintf(buf + res, "%u.%u.%u.%u ",
NIPQUAD(bond->params.arp_targets[i]));
}
if (res) buf[res-1] = '\n'; /* eat the leftover space */
if (res)
buf[res-1] = '\n'; /* eat the leftover space */
return res;
}

Expand Down

0 comments on commit c3d3589

Please sign in to comment.