Skip to content

Commit 7650ecc

Browse files
authored
[radio] rename local variable in SetMacKey() (openthread#13013)
This commit renames the local variable `aKeyType` to `keyType` in `Radio::SetMacKey()` to align with the project's naming conventions. The `a` prefix is reserved for function arguments, while local variables use `lowerCamelCase` without a prefix.
1 parent 7319d40 commit 7650ecc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/core/radio/radio.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,15 +916,15 @@ inline void Radio::SetMacKey(uint8_t aKeyIdMode,
916916
const Mac::KeyMaterial &aCurrKey,
917917
const Mac::KeyMaterial &aNextKey)
918918
{
919-
otRadioKeyType aKeyType;
919+
otRadioKeyType keyType;
920920

921921
#if OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE
922-
aKeyType = OT_KEY_TYPE_KEY_REF;
922+
keyType = OT_KEY_TYPE_KEY_REF;
923923
#else
924-
aKeyType = OT_KEY_TYPE_LITERAL_KEY;
924+
keyType = OT_KEY_TYPE_LITERAL_KEY;
925925
#endif
926926

927-
otPlatRadioSetMacKey(GetInstancePtr(), aKeyIdMode, aKeyId, &aPrevKey, &aCurrKey, &aNextKey, aKeyType);
927+
otPlatRadioSetMacKey(GetInstancePtr(), aKeyIdMode, aKeyId, &aPrevKey, &aCurrKey, &aNextKey, keyType);
928928
}
929929

930930
inline Error Radio::GetTransmitPower(int8_t &aPower) { return otPlatRadioGetTransmitPower(GetInstancePtr(), &aPower); }

0 commit comments

Comments
 (0)