Skip to content

Commit d01bb5d

Browse files
author
Andrzej Kurek
committed
Remove redundant NULL check
The PSA core should never pass NULL to this function
1 parent 6cf1d1c commit d01bb5d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

atecc608a_se.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,7 @@ static psa_status_t atecc608a_generate_key(
268268
ASSERT_SUCCESS(atcab_genkey(key_id, NULL));
269269
}
270270

271-
if (pubkey_length != NULL) {
272-
*pubkey_length = 1 + ATCA_PUB_KEY_SIZE;
273-
}
271+
*pubkey_length = 1 + ATCA_PUB_KEY_SIZE;
274272

275273
exit:
276274
atecc608a_deinit();

0 commit comments

Comments
 (0)