batman-adv: Use proper name for fragments list head
The batman-adv codebase is using "list" for the list node (prev/next) and <list content descriptor>+"_list" for the head of a list. Not using this naming scheme can up in confusions because list_head is used for both the head of the list and the list node (prev/next) in each item of the list. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:

committed by
Simon Wunderlich

parent
422d2f7780
commit
176e5b772b
@@ -47,7 +47,7 @@ int batadv_frag_send_packet(struct sk_buff *skb,
|
||||
static inline bool
|
||||
batadv_frag_check_entry(struct batadv_frag_table_entry *frags_entry)
|
||||
{
|
||||
if (!hlist_empty(&frags_entry->head) &&
|
||||
if (!hlist_empty(&frags_entry->fragment_list) &&
|
||||
batadv_has_timed_out(frags_entry->timestamp, BATADV_FRAG_TIMEOUT))
|
||||
return true;
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user