Remove redundant code

Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 4742c3c..273d248 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -7196,7 +7196,6 @@
         return PSA_ERROR_INVALID_ARGUMENT;
     }
 
-    ;
     memset(&operation->data.inputs, 0, sizeof(operation->data.inputs));
 
     operation->data.inputs.alg = cipher_suite->algorithm;
@@ -7233,7 +7232,6 @@
     };
 
     psa_key_type_t type = psa_get_key_type(&attributes);
-    psa_key_usage_t usage = psa_get_key_usage_flags(&attributes);
 
     if (type != PSA_KEY_TYPE_PASSWORD &&
         type != PSA_KEY_TYPE_PASSWORD_HASH) {
@@ -7241,11 +7239,6 @@
         goto error;
     }
 
-    if ((usage & PSA_KEY_USAGE_DERIVE) == 0) {
-        status = PSA_ERROR_NOT_PERMITTED;
-        goto error;
-    }
-
     operation->data.inputs.password = mbedtls_calloc(1, slot->key.bytes);
     if (operation->data.inputs.password == NULL) {
         return PSA_ERROR_INSUFFICIENT_MEMORY;