From ed5a5565c0793e7695fd0e60900023858af12bf9 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Sat, 8 Apr 2023 13:45:05 +0200 Subject: [PATCH] Update smc.h --- include/core/smc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/core/smc.h b/include/core/smc.h index 061825d..360e473 100644 --- a/include/core/smc.h +++ b/include/core/smc.h @@ -62,16 +62,14 @@ typedef struct { /// Helper inline functions. -NX_INLINE bool smcPrepareGenerateAesKekOption(bool is_device_unique, u32 key_type_idx, u32 seal_key_idx, SmcGenerateAesKekOption *out) +NX_INLINE void smcPrepareGenerateAesKekOption(bool is_device_unique, u32 key_type_idx, u32 seal_key_idx, SmcGenerateAesKekOption *out) { - if (key_type_idx >= SmcKeyType_Count || seal_key_idx >= SmcSealKey_Count) return false; + if (key_type_idx >= SmcKeyType_Count || seal_key_idx >= SmcSealKey_Count) return; out->fields.is_device_unique = (u32)(is_device_unique & 1); out->fields.key_type_idx = key_type_idx; out->fields.seal_key_idx = seal_key_idx; out->fields.reserved = 0; - - return true; } #ifdef __cplusplus