Bluetooth: Add missing if statement brackets
Style fix - add missing brackets for single instruction if statements. Change-Id: If37f886949fb8587d6973a19bd2df92af03f7a87 Signed-off-by: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
This commit is contained in:
parent
798db87306
commit
106656bae9
1 changed files with 4 additions and 2 deletions
|
@ -178,11 +178,13 @@ void bt_gatt_foreach_attr(uint16_t start_handle, uint16_t end_handle,
|
|||
const struct bt_gatt_attr *attr = &db[i];
|
||||
|
||||
/* Check if attribute handle is within range */
|
||||
if (attr->handle < start_handle || attr->handle > end_handle)
|
||||
if (attr->handle < start_handle || attr->handle > end_handle) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (func(attr, user_data) == BT_GATT_ITER_STOP)
|
||||
if (func(attr, user_data) == BT_GATT_ITER_STOP) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue