git: fe30e08ac736 - main - ng_pppoe: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Dec 2021 12:33:07 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=fe30e08ac736cc655f9eb0cd793113eda0b497c0
commit fe30e08ac736cc655f9eb0cd793113eda0b497c0
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-15 12:32:40 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-15 12:32:40 +0000
ng_pppoe: plug set-but-not-used vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/netgraph/ng_pppoe.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 295a136cc554..a18d6a0498a7 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -1462,8 +1462,6 @@ ng_pppoe_rcvdata(hook_p hook, item_p item)
struct mbuf *m0;
const struct pppoe_hdr *ph;
negp neg = sp->neg;
- uint16_t session;
- uint16_t length;
uint8_t code;
/*
@@ -1478,8 +1476,6 @@ ng_pppoe_rcvdata(hook_p hook, item_p item)
}
wh = mtod(m, struct pppoe_full_hdr *);
ph = &wh->ph;
- session = ntohs(wh->ph.sid);
- length = ntohs(wh->ph.length);
code = wh->ph.code;
/* Use peers mode in session. */
neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type;
@@ -1569,7 +1565,6 @@ ng_pppoe_rcvdata_ether(hook_p hook, item_p item)
struct mbuf *m;
hook_p sendhook;
int error = 0;
- uint16_t session;
uint16_t length;
uint8_t code;
struct mbuf *m0;
@@ -1639,7 +1634,6 @@ ng_pppoe_rcvdata_ether(hook_p hook, item_p item)
wh = mtod(m, struct pppoe_full_hdr *);
length = ntohs(wh->ph.length);
ph = &wh->ph;
- session = ntohs(wh->ph.sid);
code = wh->ph.code;
switch(code) {