Skip to content

Commit c6e8ae5

Browse files
committed
Use correct return value.
1 parent f01bc97 commit c6e8ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/device_key/source/DeviceKey.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ int DeviceKey::generate_root_of_trust()
271271
mbedtls_entropy_free(entropy);
272272
delete entropy;
273273

274-
if (ret == MBED_SUCCESS) {
274+
if (ret == DEVICEKEY_SUCCESS) {
275275
ret = device_inject_root_of_trust(key_buff, actual_size);
276276
}
277277
#endif

0 commit comments

Comments
 (0)