batman-adv: Rename if_list_queue to if_queue
Commit Message
The name "if_list_queue" would create lines longer than 80 chars which
can be avoided by shortened version "if_queue".
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
batman-adv/hard-interface.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Comments
On Sunday 21 November 2010 23:37:16 Sven Eckelmann wrote:
> The name "if_list_queue" would create lines longer than 80 chars which
> can be avoided by shortened version "if_queue".
Applied in revision 1880.
Thanks,
Marek
@@ -476,19 +476,19 @@ static void hardif_remove_interface(struct batman_if *batman_if)
void hardif_remove_interfaces(void)
{
struct batman_if *batman_if, *batman_if_tmp;
- struct list_head if_list_queue;
+ struct list_head if_queue;
- INIT_LIST_HEAD(&if_list_queue);
+ INIT_LIST_HEAD(&if_queue);
spin_lock(&if_list_lock);
list_for_each_entry_safe(batman_if, batman_if_tmp, &if_list, list) {
list_del_rcu(&batman_if->list);
- list_add_tail(&batman_if->list, &if_list_queue);
+ list_add_tail(&batman_if->list, &if_queue);
}
spin_unlock(&if_list_lock);
rtnl_lock();
- list_for_each_entry_safe(batman_if, batman_if_tmp, &if_list_queue, list) {
+ list_for_each_entry_safe(batman_if, batman_if_tmp, &if_queue, list) {
hardif_remove_interface(batman_if);
}
rtnl_unlock();