mirror of https://github.com/ARMmbed/mbed-os.git
Use correct return value.
parent
f01bc974ef
commit
c6e8ae56db
|
|
@ -271,7 +271,7 @@ int DeviceKey::generate_root_of_trust()
|
|||
mbedtls_entropy_free(entropy);
|
||||
delete entropy;
|
||||
|
||||
if (ret == MBED_SUCCESS) {
|
||||
if (ret == DEVICEKEY_SUCCESS) {
|
||||
ret = device_inject_root_of_trust(key_buff, actual_size);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue