git: 9f566782e0ba - main - ng_bt: Remove an unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:17 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=9f566782e0ba9973a78fd2405427b5de887ac213
commit 9f566782e0ba9973a78fd2405427b5de887ac213
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-08 00:01:26 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-08 00:01:26 +0000
ng_bt: Remove an unused variable.
Leave a comment describing the field in the packet it represented.
---
sys/netgraph/bluetooth/hci/ng_hci_evnt.c | 7 +++----
1 file 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));