aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hal_internal.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/hal_internal.h b/hal_internal.h
index dc00568..756de90 100644
--- a/hal_internal.h
+++ b/hal_internal.h
@@ -666,10 +666,6 @@ static inline hal_error_t hal_ks_set_attributes(hal_ks_t *ks,
if (ks->driver->set_attributes == NULL)
return HAL_ERROR_NOT_IMPLEMENTED;
- for (int i = 0; i < attributes_len; i++)
- if (attributes[i].length == 0 || attributes[i].value == NULL)
- return HAL_ERROR_BAD_ARGUMENTS;
-
return ks->driver->set_attributes(ks, slot, attributes, attributes_len);
}