Skip to content

Commit b3c4dfb

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 0f56b92 commit b3c4dfb

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
@@ -2310,6 +2310,10 @@ static void deferred_work(struct k_work *work)
23102310
err);
23112311
}
23122312
#endif
2313+
} else {
2314+
/* Neither the application nor the configuration
2315+
* set LE connection parameters.
2316+
*/
23132317
}
23142318

23152319
atomic_set_bit(conn->flags, BT_CONN_PERIPHERAL_PARAM_UPDATE);
@@ -2412,6 +2416,8 @@ struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type)
24122416
} else if (link_type == BT_HCI_ESCO) {
24132417
sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type &
24142418
~EDR_ESCO_PKT_MASK);
2419+
} else {
2420+
/* Ignoring unexpected link type BT_HCI_ACL. */
24152421
}
24162422

24172423
return sco_conn;

0 commit comments

Comments
 (0)