aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:26 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:26 +0000
commit9f566782e0ba9973a78fd2405427b5de887ac213 (patch)
tree1b8c6b20f8c71bf95963329199c04a25b8b3ec6e /sys/netgraph
parent3f0871d7fc4e478d85645d1202506143718a6157 (diff)
downloadsrc-9f566782e0ba9973a78fd2405427b5de887ac213.tar.gz
src-9f566782e0ba9973a78fd2405427b5de887ac213.zip
ng_bt: Remove an unused variable.
Leave a comment describing the field in the packet it represented.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/bluetooth/hci/ng_hci_evnt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c
index 64ab4f0b36b9..b2cdf01423a2 100644
--- a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c
+++ b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c
@@ -382,7 +382,6 @@ le_advertizing_report(ng_hci_unit_p unit, struct mbuf *event)
bdaddr_t bdaddr;
int error = 0;
int num_reports = 0;
- u_int8_t event_type;
u_int8_t addr_type;
NG_HCI_M_PULLUP(event, sizeof(*ep));
@@ -395,10 +394,10 @@ le_advertizing_report(ng_hci_unit_p unit, struct mbuf *event)
ep = NULL;
for (; num_reports > 0; num_reports --) {
- /* Get remote unit address */
- NG_HCI_M_PULLUP(event, sizeof(u_int8_t));
- event_type = *mtod(event, u_int8_t *);
+ /* event_type */
m_adj(event, sizeof(u_int8_t));
+
+ /* Get remote unit address */
NG_HCI_M_PULLUP(event, sizeof(u_int8_t));
addr_type = *mtod(event, u_int8_t *);
m_adj(event, sizeof(u_int8_t));