commit | 408319be3ab32f70af5b0d1fa6a9942ec64fe37d | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Mon Dec 10 17:34:00 2018 +0100 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Tue Dec 11 16:48:14 2018 +0100 |
tree | 6bf1621a45e158717af51ee24cecd8fb4096c0e8 | |
parent | 539cda57df9a7f36b03b46075016a6ce91166760 [diff] |
Remove redundant check for slot->allocated This check became redundant when support for direct access to key slots was removed.
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index d272334..554da4b 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -899,8 +899,6 @@ status = psa_get_key_slot( handle, &slot ); if( status != PSA_SUCCESS ) return( status ); - if( ! slot->allocated ) - return( PSA_ERROR_INVALID_HANDLE ); return( psa_wipe_key_slot( slot ) ); }