netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pptp: Remove unused variable in pptp_release()
@ 2017-06-18 15:41 Christos Gkekas
  2017-06-19  3:54 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Christos Gkekas @ 2017-06-18 15:41 UTC (permalink / raw)
  To: Dmitry Kozlov, netdev, linux-kernel; +Cc: Christos Gkekas

Variable opt in pptp_release() is set but never used, thus needs to be
removed.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
---
 drivers/net/ppp/pptp.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c
index 1951b10..5b0fd89 100644
--- a/drivers/net/ppp/pptp.c
+++ b/drivers/net/ppp/pptp.c
@@ -506,7 +506,6 @@ static int pptp_release(struct socket *sock)
 {
 	struct sock *sk = sock->sk;
 	struct pppox_sock *po;
-	struct pptp_opt *opt;
 	int error = 0;
 
 	if (!sk)
@@ -520,7 +519,6 @@ static int pptp_release(struct socket *sock)
 	}
 
 	po = pppox_sk(sk);
-	opt = &po->proto.pptp;
 	del_chan(po);
 
 	pppox_unbind_sock(sk);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-19  3:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-18 15:41 [PATCH] pptp: Remove unused variable in pptp_release() Christos Gkekas
2017-06-19  3:54 ` 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).