Commit 3b12bb60 authored by Rami Rosen's avatar Rami Rosen Committed by David S. Miller

pppoe: remove unused return value from two methods.

The patch removes unused return value from __delete_item() and
delete_item() methods in drivers/net/ppp/pppoe.c.
Signed-off-by: default avatarRami Rosen <ramirose@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 046f4aaf
...@@ -201,7 +201,7 @@ static int __set_item(struct pppoe_net *pn, struct pppox_sock *po) ...@@ -201,7 +201,7 @@ static int __set_item(struct pppoe_net *pn, struct pppox_sock *po)
return 0; return 0;
} }
static struct pppox_sock *__delete_item(struct pppoe_net *pn, __be16 sid, static void __delete_item(struct pppoe_net *pn, __be16 sid,
char *addr, int ifindex) char *addr, int ifindex)
{ {
int hash = hash_item(sid, addr); int hash = hash_item(sid, addr);
...@@ -220,8 +220,6 @@ static struct pppox_sock *__delete_item(struct pppoe_net *pn, __be16 sid, ...@@ -220,8 +220,6 @@ static struct pppox_sock *__delete_item(struct pppoe_net *pn, __be16 sid,
src = &ret->next; src = &ret->next;
ret = ret->next; ret = ret->next;
} }
return ret;
} }
/********************************************************************** /**********************************************************************
...@@ -264,16 +262,12 @@ static inline struct pppox_sock *get_item_by_addr(struct net *net, ...@@ -264,16 +262,12 @@ static inline struct pppox_sock *get_item_by_addr(struct net *net,
return pppox_sock; return pppox_sock;
} }
static inline struct pppox_sock *delete_item(struct pppoe_net *pn, __be16 sid, static inline void delete_item(struct pppoe_net *pn, __be16 sid,
char *addr, int ifindex) char *addr, int ifindex)
{ {
struct pppox_sock *ret;
write_lock_bh(&pn->hash_lock); write_lock_bh(&pn->hash_lock);
ret = __delete_item(pn, sid, addr, ifindex); __delete_item(pn, sid, addr, ifindex);
write_unlock_bh(&pn->hash_lock); write_unlock_bh(&pn->hash_lock);
return ret;
} }
/*************************************************************************** /***************************************************************************
......
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