git: 080dbf428796 - stable/13 - ng_bt: Remove an unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 21 Jan 2023 21:33:26 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=080dbf428796bd2f7adfe086e8996e3e5617a86d commit 080dbf428796bd2f7adfe086e8996e3e5617a86d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:26 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2023-01-21 21:31:20 +0000 ng_bt: Remove an unused variable. Leave a comment describing the field in the packet it represented. (cherry picked from commit 9f566782e0ba9973a78fd2405427b5de887ac213) --- 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));