projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
836d57e
)
pptp: Remove unused variable in pptp_release()
author
Christos Gkekas
<chris.gekas@gmail.com>
Sun, 18 Jun 2017 15:41:40 +0000
(16:41 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 19 Jun 2017 03:53:56 +0000
(23:53 -0400)
Variable opt in pptp_release() is set but never used, thus needs to be
removed.
Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pptp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ppp/pptp.c
b/drivers/net/ppp/pptp.c
index 2f22e318a67f957cf1c0bed154a2b11721667b3e..eac499c58aa706a40ebf76024767ad80b1749678 100644
(file)
--- 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);