Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102635
b: refs/heads/master
c: 0dd646f
h: refs/heads/master
i:
  102633: edb1f2c
  102631: d74b29b
v: v3
  • Loading branch information
Pavel Emelyanov authored and Jeff Garzik committed May 22, 2008
1 parent d8b242c commit 4329a04
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 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: 4b8a9239ee708958ed72722a0e5e0cf34243ad26
refs/heads/master: 0dd646fe0549251e79d6fb03e6773bcc6ccea61f
7 changes: 2 additions & 5 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4848,7 +4848,7 @@ static struct lock_class_key bonding_netdev_xmit_lock_key;
* Caller must NOT hold rtnl_lock; we need to release it here before we
* set up our sysfs entries.
*/
int bond_create(char *name, struct bond_params *params, struct bonding **newbond)
int bond_create(char *name, struct bond_params *params)
{
struct net_device *bond_dev;
struct bonding *bond, *nxt;
Expand Down Expand Up @@ -4902,9 +4902,6 @@ int bond_create(char *name, struct bond_params *params, struct bonding **newbond

lockdep_set_class(&bond_dev->_xmit_lock, &bonding_netdev_xmit_lock_key);

if (newbond)
*newbond = bond_dev->priv;

netif_carrier_off(bond_dev);

up_write(&bonding_rwsem);
Expand Down Expand Up @@ -4950,7 +4947,7 @@ static int __init bonding_init(void)
init_rwsem(&bonding_rwsem);

for (i = 0; i < max_bonds; i++) {
res = bond_create(NULL, &bonding_defaults, NULL);
res = bond_create(NULL, &bonding_defaults);
if (res)
goto err;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bond_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static ssize_t bonding_store_bonds(struct class *cls, const char *buffer, size_t
if (command[0] == '+') {
printk(KERN_INFO DRV_NAME
": %s is being created...\n", ifname);
rv = bond_create(ifname, &bonding_defaults, &bond);
rv = bond_create(ifname, &bonding_defaults);
if (rv) {
printk(KERN_INFO DRV_NAME ": Bond creation failed.\n");
res = rv;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bonding.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static inline void bond_unset_master_alb_flags(struct bonding *bond)

struct vlan_entry *bond_next_vlan(struct bonding *bond, struct vlan_entry *curr);
int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev);
int bond_create(char *name, struct bond_params *params, struct bonding **newbond);
int bond_create(char *name, struct bond_params *params);
void bond_destroy(struct bonding *bond);
int bond_release_and_destroy(struct net_device *bond_dev, struct net_device *slave_dev);
int bond_create_sysfs(void);
Expand Down

0 comments on commit 4329a04

Please sign in to comment.