Skip to content

Commit e10fb94

Browse files
committed
Remove unneeded code
Signed-off-by: cybnon <stefan.weber93@googlemail.com>
1 parent 6601c6a commit e10fb94

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/atecc608_handler.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,6 @@ int atecc_handler_write_data(int slot, uint8_t* data, size_t data_len) {
224224
return status;
225225
}
226226

227-
// Check both config and data zone locks
228-
if (check_lock_zone(LOCK_ZONE_CONFIG) == ATCA_NOT_LOCKED ||
229-
check_lock_zone(LOCK_ZONE_DATA) == ATCA_NOT_LOCKED) {
230-
return ATCA_EXECUTION_ERROR;
231-
}
232-
233227
// Calculate the number of blocks and any remaining bytes
234228
size_t num_blocks = data_len / 32;
235229
size_t remaining_bytes = data_len % 32;
@@ -270,12 +264,6 @@ int atecc_handler_read_data(int slot, uint8_t* data, size_t data_len) {
270264
return status;
271265
}
272266

273-
// Check both config and data zone locks
274-
if (check_lock_zone(LOCK_ZONE_CONFIG) == ATCA_NOT_LOCKED ||
275-
check_lock_zone(LOCK_ZONE_DATA) == ATCA_NOT_LOCKED) {
276-
return ATCA_EXECUTION_ERROR;
277-
}
278-
279267
// Calculate the number of blocks and any remaining bytes
280268
size_t num_blocks = data_len / 32;
281269
size_t remaining_bytes = data_len % 32;

0 commit comments

Comments
 (0)