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:
Grzegorz Kolodziejczyk 2015-09-04 14:37:44 +02:00 committed by Anas Nashif
commit 106656bae9

View file

@ -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;
}
}
}