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 <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
92273c5754
commit
f9b5de2d0a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue