We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 318efbf commit ecc1a6dCopy full SHA for ecc1a6d
nimble/host/src/ble_l2cap_sig.c
@@ -1666,25 +1666,15 @@ static void
1666
ble_l2cap_sig_coc_disconnect_cb(struct ble_l2cap_sig_proc *proc, int status)
1667
{
1668
struct ble_l2cap_chan *chan;
1669
- struct ble_l2cap_event event;
1670
struct ble_hs_conn *conn;
1671
1672
- if (!proc) {
1673
- return;
1674
- }
+ assert(proc);
1675
1676
- memset(&event, 0, sizeof(event));
1677
chan = proc->disconnect.chan;
1678
-
1679
if (!chan) {
1680
return;
1681
}
1682
1683
- if (!chan->cb) {
1684
- goto done;
1685
1686
1687
-done:
1688
ble_hs_lock();
1689
conn = ble_hs_conn_find_assert(chan->conn_handle);
1690
if (conn) {
0 commit comments