Skip to content

Commit 0a23067

Browse files
Vudentzjhedberg
authored andcommitted
Bluetooth: GATT: Remove BT_GATT_WRITE_FLAG_PREPARE check in GAP
This check is only required when BT_GATT_WRITE_FLAG_PREPARE is set. Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 67ca29a commit 0a23067

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

subsys/bluetooth/host/gatt.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ static ssize_t write_name(struct bt_conn *conn, const struct bt_gatt_attr *attr,
6969
{
7070
char value[CONFIG_BT_DEVICE_NAME_MAX] = {};
7171

72-
if (flags & BT_GATT_WRITE_FLAG_PREPARE) {
73-
return len;
74-
}
75-
7672
if (offset) {
7773
return BT_GATT_ERR(BT_ATT_ERR_INVALID_OFFSET);
7874
}

0 commit comments

Comments
 (0)