Commit b3896a36 authored by Abdun Nihaal's avatar Abdun Nihaal Committed by Greg Kroah-Hartman

staging: r8188eu: remove unused argument in __nat25_has_expired

The argument priv is not used in function __nat25_has_expired. Remove it.
Signed-off-by: default avatarAbdun Nihaal <abdun.nihaal@gmail.com>
Link: https://lore.kernel.org/r/eceb38329e108c1e440eb973492a5a1c17bd7927.1644422181.git.abdun.nihaal@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dbb2423b
...@@ -105,8 +105,7 @@ static int skb_pull_and_merge(struct sk_buff *skb, unsigned char *src, int len) ...@@ -105,8 +105,7 @@ static int skb_pull_and_merge(struct sk_buff *skb, unsigned char *src, int len)
return 0; return 0;
} }
static int __nat25_has_expired(struct adapter *priv, static int __nat25_has_expired(struct nat25_network_db_entry *fdb)
struct nat25_network_db_entry *fdb)
{ {
if (time_before_eq(fdb->ageing_timer, jiffies - NAT25_AGEING_TIME * HZ)) if (time_before_eq(fdb->ageing_timer, jiffies - NAT25_AGEING_TIME * HZ))
return 1; return 1;
...@@ -363,7 +362,7 @@ void nat25_db_expire(struct adapter *priv) ...@@ -363,7 +362,7 @@ void nat25_db_expire(struct adapter *priv)
struct nat25_network_db_entry *g; struct nat25_network_db_entry *g;
g = f->next_hash; g = f->next_hash;
if (__nat25_has_expired(priv, f)) { if (__nat25_has_expired(f)) {
if (atomic_dec_and_test(&f->use_count)) { if (atomic_dec_and_test(&f->use_count)) {
if (priv->scdb_entry == f) { if (priv->scdb_entry == f) {
memset(priv->scdb_mac, 0, ETH_ALEN); memset(priv->scdb_mac, 0, ETH_ALEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment