Skip to content

Commit 1b2d261

Browse files
committed
boot: zephyr: flash_map: Fix unused argument
Fixes an issue with an unused variable argument Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent 413eb38 commit 1b2d261

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

boot/zephyr/include/flash_map_backend/flash_map_backend.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,15 @@ int flash_area_get_sector(const struct flash_area *fa, off_t off,
112112
static inline bool flash_area_erase_required(const struct flash_area *fa)
113113
{
114114
#if defined(CONFIG_FLASH_HAS_EXPLICIT_ERASE) && defined(CONFIG_FLASH_HAS_NO_EXPLICIT_ERASE)
115-
const struct flash_parameters *fp = flash_get_parameters(flash_area_get_device(fa));
116-
117115
return flash_params_get_erase_cap(flash_get_parameters(flash_area_get_device(fa))) &
118116
FLASH_ERASE_C_EXPLICIT;
119117
#elif defined(CONFIG_FLASH_HAS_EXPLICIT_ERASE)
118+
(void)fa;
119+
120120
return true;
121121
#else
122+
(void)fa;
123+
122124
return false;
123125
#endif
124126
}

0 commit comments

Comments
 (0)