aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
index b8caf0c515fd..b123322b33aa 100644
--- a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
+++ b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
@@ -808,8 +808,7 @@ ng_btsocket_hci_raw_init(void *arg __unused)
/* Enable all events */
memset(&ng_btsocket_hci_raw_sec_filter->events, 0xff,
- sizeof(ng_btsocket_hci_raw_sec_filter->events)/
- sizeof(ng_btsocket_hci_raw_sec_filter->events[0]));
+ sizeof(ng_btsocket_hci_raw_sec_filter->events));
/* Disable some critical events */
f = ng_btsocket_hci_raw_sec_filter->events;