diff options
author | Rami Rosen <ramirose@gmail.com> | 2012-05-17 01:04:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-17 15:34:34 -0400 |
commit | 3b12bb60437eb69cd9ff58e5dee23b525d01d069 (patch) | |
tree | 6a242cd303076d2dbbedbde53612e7e05fe58a46 /drivers/net/ppp | |
parent | 046f4aaf6d25ac8449ef5ec7edb14d6ae68a0094 (diff) |
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: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r-- | drivers/net/ppp/pppoe.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c index 2fa1a9b6f49..dd15b8f8aa0 100644 --- a/drivers/net/ppp/pppoe.c +++ b/drivers/net/ppp/pppoe.c | |||
@@ -201,7 +201,7 @@ static int __set_item(struct pppoe_net *pn, struct pppox_sock *po) | |||
201 | return 0; | 201 | return 0; |
202 | } | 202 | } |
203 | 203 | ||
204 | static struct pppox_sock *__delete_item(struct pppoe_net *pn, __be16 sid, | 204 | static void __delete_item(struct pppoe_net *pn, __be16 sid, |
205 | char *addr, int ifindex) | 205 | char *addr, int ifindex) |
206 | { | 206 | { |
207 | int hash = hash_item(sid, addr); | 207 | int hash = hash_item(sid, addr); |
@@ -220,8 +220,6 @@ static struct pppox_sock *__delete_item(struct pppoe_net *pn, __be16 sid, | |||
220 | src = &ret->next; | 220 | src = &ret->next; |
221 | ret = ret->next; | 221 | ret = ret->next; |
222 | } | 222 | } |
223 | |||
224 | return ret; | ||
225 | } | 223 | } |
226 | 224 | ||
227 | /********************************************************************** | 225 | /********************************************************************** |
@@ -264,16 +262,12 @@ static inline struct pppox_sock *get_item_by_addr(struct net *net, | |||
264 | return pppox_sock; | 262 | return pppox_sock; |
265 | } | 263 | } |
266 | 264 | ||
267 | static inline struct pppox_sock *delete_item(struct pppoe_net *pn, __be16 sid, | 265 | static inline void delete_item(struct pppoe_net *pn, __be16 sid, |
268 | char *addr, int ifindex) | 266 | char *addr, int ifindex) |
269 | { | 267 | { |
270 | struct pppox_sock *ret; | ||
271 | |||
272 | write_lock_bh(&pn->hash_lock); | 268 | write_lock_bh(&pn->hash_lock); |
273 | ret = __delete_item(pn, sid, addr, ifindex); | 269 | __delete_item(pn, sid, addr, ifindex); |
274 | write_unlock_bh(&pn->hash_lock); | 270 | write_unlock_bh(&pn->hash_lock); |
275 | |||
276 | return ret; | ||
277 | } | 271 | } |
278 | 272 | ||
279 | /*************************************************************************** | 273 | /*************************************************************************** |