diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-08 00:01:26 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-01-21 21:31:20 +0000 |
commit | 080dbf428796bd2f7adfe086e8996e3e5617a86d (patch) | |
tree | 2b809c3ab9379b6b9ed47d607eacaad96df3439b /sys/netgraph | |
parent | c84ec3076e7de10d7475fd9694ad64603e264d88 (diff) | |
download | src-080dbf428796bd2f7adfe086e8996e3e5617a86d.tar.gz src-080dbf428796bd2f7adfe086e8996e3e5617a86d.zip |
ng_bt: Remove an unused variable.
Leave a comment describing the field in the packet it represented.
(cherry picked from commit 9f566782e0ba9973a78fd2405427b5de887ac213)
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/bluetooth/hci/ng_hci_evnt.c | 7 |
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)); |