Skip to content

Commit 3b1709d

Browse files
ecsvsimonwunderlich
authored andcommitted
batman-adv: Join batadv_purge_orig_ref and _batadv_purge_orig
The single line function batadv_purge_orig_ref has no function beside providing the name used by other source files. This can also be done simpler by just renaming _batadv_purge_orig to batadv_purge_orig_ref. Signed-off-by: Sven Eckelmann <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]>
1 parent 94f01ee commit 3b1709d

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

net/batman-adv/originator.c

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,11 @@ static bool batadv_purge_orig_node(struct batadv_priv *bat_priv,
13391339
return false;
13401340
}
13411341

1342-
static void _batadv_purge_orig(struct batadv_priv *bat_priv)
1342+
/**
1343+
* batadv_purge_orig_ref() - Purge all outdated originators
1344+
* @bat_priv: the bat priv with all the soft interface information
1345+
*/
1346+
void batadv_purge_orig_ref(struct batadv_priv *bat_priv)
13431347
{
13441348
struct batadv_hashtable *hash = bat_priv->orig_hash;
13451349
struct hlist_node *node_tmp;
@@ -1385,21 +1389,12 @@ static void batadv_purge_orig(struct work_struct *work)
13851389

13861390
delayed_work = to_delayed_work(work);
13871391
bat_priv = container_of(delayed_work, struct batadv_priv, orig_work);
1388-
_batadv_purge_orig(bat_priv);
1392+
batadv_purge_orig_ref(bat_priv);
13891393
queue_delayed_work(batadv_event_workqueue,
13901394
&bat_priv->orig_work,
13911395
msecs_to_jiffies(BATADV_ORIG_WORK_PERIOD));
13921396
}
13931397

1394-
/**
1395-
* batadv_purge_orig_ref() - Purge all outdated originators
1396-
* @bat_priv: the bat priv with all the soft interface information
1397-
*/
1398-
void batadv_purge_orig_ref(struct batadv_priv *bat_priv)
1399-
{
1400-
_batadv_purge_orig(bat_priv);
1401-
}
1402-
14031398
#ifdef CONFIG_BATMAN_ADV_DEBUGFS
14041399

14051400
/**

0 commit comments

Comments
 (0)