Commit 4a13147cb5d2cb45984074c1becb164a6e9d465f

Authored by Sven Eckelmann
Committed by Antonio Quartulli
1 parent ba610043af

batman-adv: Rename batadv_tvlv_container *_free_ref function to *_put

The batman-adv source code is the only place in the kernel which uses the
*_free_ref naming scheme for the *_put functions. Changing it to *_put
makes it more consistent and makes it easier to understand the connection
to the *_get functions.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

net/batman-adv/main.c
... ... @@ -694,11 +694,11 @@
694 694 }
695 695  
696 696 /**
697   - * batadv_tvlv_container_free_ref - decrement the tvlv container refcounter and
  697 + * batadv_tvlv_container_put - decrement the tvlv container refcounter and
698 698 * possibly release it
699 699 * @tvlv: the tvlv container to free
700 700 */
701   -static void batadv_tvlv_container_free_ref(struct batadv_tvlv_container *tvlv)
  701 +static void batadv_tvlv_container_put(struct batadv_tvlv_container *tvlv)
702 702 {
703 703 kref_put(&tvlv->refcount, batadv_tvlv_container_release);
704 704 }
... ... @@ -784,8 +784,8 @@
784 784 hlist_del(&tvlv->list);
785 785  
786 786 /* first call to decrement the counter, second call to free */
787   - batadv_tvlv_container_free_ref(tvlv);
788   - batadv_tvlv_container_free_ref(tvlv);
  787 + batadv_tvlv_container_put(tvlv);
  788 + batadv_tvlv_container_put(tvlv);
789 789 }
790 790  
791 791 /**