Skip to content

Commit a6ee0ad

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 0e8eb8b commit a6ee0ad

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
@@ -2308,6 +2308,10 @@ static void deferred_work(struct k_work *work)
23082308
err);
23092309
}
23102310
#endif
2311+
} else {
2312+
/* Neither the application nor the configuration
2313+
* set LE connection parameters.
2314+
*/
23112315
}
23122316

23132317
atomic_set_bit(conn->flags, BT_CONN_PERIPHERAL_PARAM_UPDATE);
@@ -2410,6 +2414,8 @@ struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type)
24102414
} else if (link_type == BT_HCI_ESCO) {
24112415
sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type &
24122416
~EDR_ESCO_PKT_MASK);
2417+
} else {
2418+
/* Ignoring unexpected link type BT_HCI_ACL. */
24132419
}
24142420

24152421
return sco_conn;

0 commit comments

Comments
 (0)