Skip to content

Commit 791dd18

Browse files
committed
Bluetooth: Host: fix some MISRA c:M23_112 warnings
Fix some "All if ... else if constructs shall be terminated with an else clause" (c:M23_112) issues reported by SonarQube. Signed-off-by: Christophe Dufaza <[email protected]>
1 parent 4d5f05c commit 791dd18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

subsys/bluetooth/host/conn.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,10 @@ static void deferred_work(struct k_work *work)
23122312
err);
23132313
}
23142314
#endif
2315+
} else {
2316+
/* Neither the application nor the configuration
2317+
* set LE connection parameters.
2318+
*/
23152319
}
23162320

23172321
atomic_set_bit(conn->flags, BT_CONN_PERIPHERAL_PARAM_UPDATE);
@@ -2414,6 +2418,8 @@ struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type)
24142418
} else if (link_type == BT_HCI_ESCO) {
24152419
sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type &
24162420
~EDR_ESCO_PKT_MASK);
2421+
} else {
2422+
/* Ignoring unexpected link type BT_HCI_ACL. */
24172423
}
24182424

24192425
return sco_conn;

0 commit comments

Comments
 (0)