diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-12-23 18:39:20 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-23 18:39:20 +0100 |
commit | 7eb4b61d1dc5dbdd6eb7362542731a1977e34e1c (patch) | |
tree | d598599de08f45f6f9a8e5dfb7869e4302b1f15b /src/rtnl.c | |
parent | 3583d87ad728b9fda4aa8710a930f3035796fc56 (diff) | |
download | connman-7eb4b61d1dc5dbdd6eb7362542731a1977e34e1c.tar.gz connman-7eb4b61d1dc5dbdd6eb7362542731a1977e34e1c.tar.bz2 connman-7eb4b61d1dc5dbdd6eb7362542731a1977e34e1c.zip |
rtnl: Call technology_add_interface() only once
Diffstat (limited to 'src/rtnl.c')
-rw-r--r-- | src/rtnl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -462,6 +462,9 @@ static void process_newlink(unsigned short type, int index, unsigned flags, if (type == ARPHRD_ETHER) read_uevent(interface); + + __connman_technology_add_interface(interface->service_type, + interface->index, interface->name, interface->ident); } for (list = rtnl_list; list; list = list->next) { @@ -471,9 +474,6 @@ static void process_newlink(unsigned short type, int index, unsigned flags, rtnl->newlink(type, index, flags, change); } - __connman_technology_add_interface(interface->service_type, - interface->index, interface->name, interface->ident); - for (list = watch_list; list; list = list->next) { struct watch_data *watch = list->data; |