From c6e8ae56db4ad90b3c35a4393e08673ef1f7df76 Mon Sep 17 00:00:00 2001 From: Stephan Brunner Date: Mon, 23 Mar 2020 09:26:30 +0100 Subject: [PATCH] Use correct return value. --- features/device_key/source/DeviceKey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/device_key/source/DeviceKey.cpp b/features/device_key/source/DeviceKey.cpp index ee0d3a2be8..bbe7db31a8 100644 --- a/features/device_key/source/DeviceKey.cpp +++ b/features/device_key/source/DeviceKey.cpp @@ -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