From 9cfdf6ebe71a6956abd2f0c0b7ec83b1362eb76e Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Mon, 18 Jan 2021 11:58:39 +0100 Subject: [PATCH] Fix coding style issues Signed-off-by: Ronald Cron --- library/psa_crypto_driver_wrappers.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/psa_crypto_driver_wrappers.c b/library/psa_crypto_driver_wrappers.c index fd03ed2bf..1eb9ebe80 100644 --- a/library/psa_crypto_driver_wrappers.c +++ b/library/psa_crypto_driver_wrappers.c @@ -501,7 +501,9 @@ psa_status_t psa_driver_wrapper_export_key( { if( ( drv->key_management == NULL ) || ( drv->key_management->p_export == NULL ) ) + { return( PSA_ERROR_NOT_SUPPORTED ); + } return( drv->key_management->p_export( drv_context, @@ -557,7 +559,9 @@ psa_status_t psa_driver_wrapper_export_public_key( { if( ( drv->key_management == NULL ) || ( drv->key_management->p_export_public == NULL ) ) + { return( PSA_ERROR_NOT_SUPPORTED ); + } return( drv->key_management->p_export_public( drv_context,