From f9b5de2d0a8bdfb8823735e0f501402763e32628 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Fri, 1 Nov 2024 11:25:09 +0100 Subject: [PATCH] tests: Bluetooth: Tester: Set conn = NULL in btp_gap bt_conn_le_create logs an error if the provided conn is not NULL. This small change cleans up the log a bit to avoid the warning. Signed-off-by: Emil Gydesen --- tests/bluetooth/tester/src/btp_gap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bluetooth/tester/src/btp_gap.c b/tests/bluetooth/tester/src/btp_gap.c index 029e15f1768..d783aaa7707 100644 --- a/tests/bluetooth/tester/src/btp_gap.c +++ b/tests/bluetooth/tester/src/btp_gap.c @@ -1004,7 +1004,7 @@ static uint8_t connect(const void *cmd, uint16_t cmd_len, int err; if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) { - struct bt_conn *conn; + struct bt_conn *conn = NULL; err = bt_conn_le_create(&cp->address, BT_CONN_LE_CREATE_CONN, conn_param, &conn); if (err) {