We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db7b43 commit 51527e0Copy full SHA for 51527e0
subsys/storage/flash_map/flash_map.c
@@ -79,7 +79,7 @@ void flash_area_close(const struct flash_area *fa)
79
80
static struct device *get_flash_dev_from_id(u8_t id)
81
{
82
- for (int i = 0; i < ARRAY_SIZE(flash_drivers_map); i++) {
+ for (unsigned int i = 0; i < ARRAY_SIZE(flash_drivers_map); i++) {
83
if (flash_drivers_map[i].id == id) {
84
return flash_dev[i];
85
}
@@ -266,7 +266,7 @@ u8_t flash_area_align(const struct flash_area *fa)
266
267
static int flash_map_init(struct device *dev)
268
269
- int i;
+ unsigned int i;
270
271
for (i = 0; i < ARRAY_SIZE(flash_dev); i++) {
272
flash_dev[i] = device_get_binding(flash_drivers_map[i].name);
0 commit comments