diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 21:19:14 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 21:19:14 +0000 |
commit | 662c13053f4bf2d6245ba7e2b66c10d1cd5c1fb9 (patch) | |
tree | 5cffe4473640975abc443ef4b8047b34cdb4a039 /sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c | |
parent | 586ee69f09c5060621486b34722a4a806581f93d (diff) |
net: clean up empty lines in .c and .h files
Notes
Notes:
svn path=/head/; revision=365071
Diffstat (limited to 'sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c')
-rw-r--r-- | sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c index 1e2cde0f489c..5f6b98d03359 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c @@ -125,7 +125,7 @@ static struct mtx ng_btsocket_hci_raw_token_mtx; static struct ng_btsocket_hci_raw_sec_filter *ng_btsocket_hci_raw_sec_filter; static struct timeval ng_btsocket_hci_raw_lasttime; static int ng_btsocket_hci_raw_curpps; - + /* Sysctl tree */ SYSCTL_DECL(_net_bluetooth_hci_sockets); static SYSCTL_NODE(_net_bluetooth_hci_sockets, OID_AUTO, raw, @@ -365,7 +365,7 @@ ng_btsocket_hci_raw_node_rcvdata(hook_p hook, item_p item) * submits ioctl() message then interrupts ioctl() and re-submits another * ioctl() on the same socket *before* first ioctl() complete. */ - + static void ng_btsocket_hci_raw_get_token(u_int32_t *token) { @@ -373,9 +373,9 @@ ng_btsocket_hci_raw_get_token(u_int32_t *token) if (++ ng_btsocket_hci_raw_token == 0) ng_btsocket_hci_raw_token = 1; - + *token = ng_btsocket_hci_raw_token; - + mtx_unlock(&ng_btsocket_hci_raw_token_mtx); } /* ng_btsocket_hci_raw_get_token */ @@ -499,7 +499,6 @@ ng_btsocket_hci_raw_data_input(struct mbuf *nam) mtx_lock(&ng_btsocket_hci_raw_sockets_mtx); LIST_FOREACH(pcb, &ng_btsocket_hci_raw_sockets, next) { - mtx_lock(&pcb->pcb_mtx); /* @@ -1504,7 +1503,7 @@ ng_btsocket_hci_raw_ctloutput(struct socket *so, struct sockopt *sopt) } mtx_unlock(&pcb->pcb_mtx); - + return (error); } /* ng_btsocket_hci_raw_ctloutput */ @@ -1650,7 +1649,7 @@ drop: NG_FREE_M(control); /* NG_FREE_M checks for != NULL */ NG_FREE_M(nam); NG_FREE_M(m); - + return (error); } /* ng_btsocket_hci_raw_send */ @@ -1681,4 +1680,3 @@ ng_btsocket_hci_raw_sockaddr(struct socket *so, struct sockaddr **nam) return ((*nam == NULL)? ENOMEM : 0); } /* ng_btsocket_hci_raw_sockaddr */ - |