Skip to content

Commit 386320c

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 bf6d454 commit 386320c

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
@@ -2291,6 +2291,10 @@ static void deferred_work(struct k_work *work)
22912291
err);
22922292
}
22932293
#endif
2294+
} else {
2295+
/* Neither the application nor the configuration
2296+
* set LE connection parameters.
2297+
*/
22942298
}
22952299

22962300
atomic_set_bit(conn->flags, BT_CONN_PERIPHERAL_PARAM_UPDATE);
@@ -2393,6 +2397,8 @@ struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type)
23932397
} else if (link_type == BT_HCI_ESCO) {
23942398
sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type &
23952399
~EDR_ESCO_PKT_MASK);
2400+
} else {
2401+
/* Ignoring unexpected link type BT_HCI_ACL. */
23962402
}
23972403

23982404
return sco_conn;

0 commit comments

Comments
 (0)