]> git.baikalelectronics.ru Git - kernel.git/commitdiff
batman-adv: rename batadv_recvlist_node struct to make clear it is used by vis
authorMarek Lindner <lindner_marek@yahoo.de>
Tue, 25 Dec 2012 09:03:23 +0000 (17:03 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Sat, 19 Jan 2013 13:18:10 +0000 (21:18 +0800)
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/types.h
net/batman-adv/vis.c

index d17517c79d3c34ecf4a41fa52474f7a7f4cd7b98..c56e0d904dac5707aac4ba157ad0eb3ac5733351 100644 (file)
@@ -453,7 +453,7 @@ struct batadv_vis_info_entry {
        uint8_t  quality;       /* quality = 0 client */
 } __packed;
 
-struct batadv_recvlist_node {
+struct batadv_vis_recvlist_node {
        struct list_head list;
        uint8_t mac[ETH_ALEN];
 };
index 3d42b17ede083ca34eed4286eff83d969ea22bec..2e70ec11320502ffd2d3a2396add6eab0e9651e0 100644 (file)
@@ -36,7 +36,7 @@ static void batadv_free_info(struct kref *ref)
 {
        struct batadv_vis_info *info;
        struct batadv_priv *bat_priv;
-       struct batadv_recvlist_node *entry, *tmp;
+       struct batadv_vis_recvlist_node *entry, *tmp;
 
        info = container_of(ref, struct batadv_vis_info, refcount);
        bat_priv = info->bat_priv;
@@ -305,7 +305,7 @@ static void batadv_send_list_del(struct batadv_vis_info *info)
 static void batadv_recv_list_add(struct batadv_priv *bat_priv,
                                 struct list_head *recv_list, const char *mac)
 {
-       struct batadv_recvlist_node *entry;
+       struct batadv_vis_recvlist_node *entry;
 
        entry = kmalloc(sizeof(*entry), GFP_ATOMIC);
        if (!entry)
@@ -322,7 +322,7 @@ static int batadv_recv_list_is_in(struct batadv_priv *bat_priv,
                                  const struct list_head *recv_list,
                                  const char *mac)
 {
-       const struct batadv_recvlist_node *entry;
+       const struct batadv_vis_recvlist_node *entry;
 
        spin_lock_bh(&bat_priv->vis.list_lock);
        list_for_each_entry(entry, recv_list, list) {