[style] return void where code always returns OT_ERROR_NONE (#3543)

This commit is contained in:
Jonathan Hui
2019-02-01 09:03:24 -08:00
committed by GitHub
parent c7911adcb1
commit ac89fd5496
58 changed files with 217 additions and 399 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ void otCryptoAesCcm(const uint8_t *aKey,
assert((aKey != NULL) && (aNonce != NULL) && (aPlainText != NULL) && (aCipherText != NULL) && (aTag != NULL));
SuccessOrExit(aesCcm.SetKey(aKey, aKeyLength));
aesCcm.SetKey(aKey, aKeyLength);
SuccessOrExit(aesCcm.Init(aHeaderLength, aLength, aTagLength, aNonce, aNonceLength));
if (aHeaderLength != 0)