mirror of
https://github.com/espressif/openthread.git
synced 2026-09-10 11:10:08 +00:00
[style] apply OT_UNUSED_VARIABLE (#3299)
This commit is contained in:
@@ -134,7 +134,7 @@ static uint32_t swapSettingsBlock(otInstance *aInstance)
|
||||
uint8_t pageNum = SETTINGS_CONFIG_PAGE_NUM;
|
||||
uint32_t settingsSize = pageNum > 1 ? SETTINGS_CONFIG_PAGE_SIZE * pageNum / 2 : SETTINGS_CONFIG_PAGE_SIZE;
|
||||
|
||||
(void)aInstance;
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
|
||||
otEXPECT(pageNum > 1);
|
||||
|
||||
@@ -261,7 +261,7 @@ void otPlatSettingsInit(otInstance *aInstance)
|
||||
uint32_t settingsSize = SETTINGS_CONFIG_PAGE_NUM > 1 ? SETTINGS_CONFIG_PAGE_SIZE * SETTINGS_CONFIG_PAGE_NUM / 2
|
||||
: SETTINGS_CONFIG_PAGE_SIZE;
|
||||
|
||||
(void)aInstance;
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
|
||||
sSettingsBaseAddress = SETTINGS_CONFIG_BASE_ADDRESS;
|
||||
|
||||
@@ -306,19 +306,19 @@ void otPlatSettingsInit(otInstance *aInstance)
|
||||
|
||||
otError otPlatSettingsBeginChange(otInstance *aInstance)
|
||||
{
|
||||
(void)aInstance;
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
return OT_ERROR_NONE;
|
||||
}
|
||||
|
||||
otError otPlatSettingsCommitChange(otInstance *aInstance)
|
||||
{
|
||||
(void)aInstance;
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
return OT_ERROR_NONE;
|
||||
}
|
||||
|
||||
otError otPlatSettingsAbandonChange(otInstance *aInstance)
|
||||
{
|
||||
(void)aInstance;
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
return OT_ERROR_NONE;
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint
|
||||
uint16_t valueLength = 0;
|
||||
int index = 0;
|
||||
|
||||
(void)aInstance;
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
|
||||
while (address < (sSettingsBaseAddress + sSettingsUsedSize))
|
||||
{
|
||||
@@ -401,7 +401,7 @@ otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex)
|
||||
uint32_t address = sSettingsBaseAddress + OT_SETTINGS_FLAG_SIZE;
|
||||
int index = 0;
|
||||
|
||||
(void)aInstance;
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
|
||||
while (address < (sSettingsBaseAddress + sSettingsUsedSize))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user