* [PATCH net-next-2.6] pppoe: remove unused return value from two methods.
@ 2012-05-17 15:04 Rami Rosen
2012-05-17 19:35 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Rami Rosen @ 2012-05-17 15:04 UTC (permalink / raw)
To: David Miller, netdev
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
Hi,
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>
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1273 bytes --]
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index 2fa1a9b..dd15b8f 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)
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)
{
int hash = hash_item(sid, addr);
@@ -220,8 +220,6 @@ static struct pppox_sock *__delete_item(struct pppoe_net *pn, __be16 sid,
src = &ret->next;
ret = ret->next;
}
-
- return ret;
}
/**********************************************************************
@@ -264,16 +262,12 @@ static inline struct pppox_sock *get_item_by_addr(struct net *net,
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)
{
- struct pppox_sock *ret;
-
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);
-
- return ret;
}
/***************************************************************************
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next-2.6] pppoe: remove unused return value from two methods.
2012-05-17 15:04 [PATCH net-next-2.6] pppoe: remove unused return value from two methods Rami Rosen
@ 2012-05-17 19:35 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-05-17 19:35 UTC (permalink / raw)
To: ramirose; +Cc: netdev
From: Rami Rosen <ramirose@gmail.com>
Date: Thu, 17 May 2012 18:04:50 +0300
> Hi,
>
> 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>
Applied, but please in the future:
1) Don't put "hi," "how are you" and things like in your message
body, I have to edit them out every time when I commit your
changes.
2) Remove that leading space from your commit message lines, I have
to edit those out as well.
Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-17 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-17 15:04 [PATCH net-next-2.6] pppoe: remove unused return value from two methods Rami Rosen
2012-05-17 19:35 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).