diff options
author | Denis Cheng <crquan@gmail.com> | 2007-07-18 02:12:56 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-18 02:12:56 -0700 |
commit | 12972621c8a18465e3d20cc8e3006a8b7f7788df (patch) | |
tree | a2ab067958ee6b7bfae0a625514aff96d903be18 /net/core/dev.c | |
parent | 26cc2522cb6ebf0c1c736485e102e9654cde1145 (diff) | |
download | op-kernel-dev-12972621c8a18465e3d20cc8e3006a8b7f7788df.zip op-kernel-dev-12972621c8a18465e3d20cc8e3006a8b7f7788df.tar.gz |
[NET]: move __dev_addr_discard adjacent to dev_addr_discard for readability
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 17c9cbd..6357f54c 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2715,20 +2715,6 @@ int __dev_addr_add(struct dev_addr_list **list, int *count, return 0; } -static void __dev_addr_discard(struct dev_addr_list **list) -{ - struct dev_addr_list *tmp; - - while (*list != NULL) { - tmp = *list; - *list = tmp->next; - if (tmp->da_users > tmp->da_gusers) - printk("__dev_addr_discard: address leakage! " - "da_users=%d\n", tmp->da_users); - kfree(tmp); - } -} - /** * dev_unicast_delete - Release secondary unicast address. * @dev: device @@ -2777,6 +2763,20 @@ int dev_unicast_add(struct net_device *dev, void *addr, int alen) } EXPORT_SYMBOL(dev_unicast_add); +static void __dev_addr_discard(struct dev_addr_list **list) +{ + struct dev_addr_list *tmp; + + while (*list != NULL) { + tmp = *list; + *list = tmp->next; + if (tmp->da_users > tmp->da_gusers) + printk("__dev_addr_discard: address leakage! " + "da_users=%d\n", tmp->da_users); + kfree(tmp); + } +} + static void dev_addr_discard(struct net_device *dev) { netif_tx_lock_bh(dev); |