Skip to content

Commit 3344aee

Browse files
ppryga-nordicjhedberg
authored andcommitted
Bluetooth: host: df: Correct style for CHECKIF statements
Correct wrong coding style used in couple of plces where CHECKIF marco is used. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 61872da commit 3344aee

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

subsys/bluetooth/host/direction.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,11 @@ static int bt_df_set_conn_cte_rx_enable(struct bt_conn *conn, bool enable,
791791

792792
int bt_df_conn_cte_rx_enable(struct bt_conn *conn, const struct bt_df_conn_cte_rx_param *params)
793793
{
794-
CHECKIF(!conn)
795-
{
794+
CHECKIF(!conn) {
796795
return -EINVAL;
797796
}
798-
CHECKIF(!params)
799-
{
797+
798+
CHECKIF(!params) {
800799
return -EINVAL;
801800
}
802801

@@ -805,8 +804,7 @@ int bt_df_conn_cte_rx_enable(struct bt_conn *conn, const struct bt_df_conn_cte_r
805804

806805
int bt_df_conn_cte_rx_disable(struct bt_conn *conn)
807806
{
808-
CHECKIF(!conn)
809-
{
807+
CHECKIF(!conn) {
810808
return -EINVAL;
811809
}
812810

0 commit comments

Comments
 (0)