batman-adv: Rename if_list_queue to if_queue

Message ID 1290379036-11460-1-git-send-email-sven.eckelmann@gmx.de (mailing list archive)
State Accepted, archived
Headers

Commit Message

Sven Eckelmann Nov. 21, 2010, 10:37 p.m. UTC
  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

Marek Lindner Nov. 21, 2010, 11:15 p.m. UTC | #1
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
  

Patch

diff --git a/batman-adv/hard-interface.c b/batman-adv/hard-interface.c
index bf98b90..4f95777 100644
--- a/batman-adv/hard-interface.c
+++ b/batman-adv/hard-interface.c
@@ -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();