ng_pppoe: plug set-but-not-used vars

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-12-15 12:32:40 +00:00
parent a076e2060c
commit fe30e08ac7

View File

@ -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) {