Remove duplicate condition

Thanks coverity
This commit is contained in:
Jakub Jelen 2020-05-28 22:45:42 +02:00 committed by Frank Morgner
parent 38474739b3
commit e8a2644435
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ static int cardos_fix_token_info(sc_pkcs15_card_t *p15card)
for (i = 0, sa = saa[0]; i < SC_MAX_SUPPORTED_ALGORITHMS; i++, sa++) {
if (sa->reference == 0 && sa->reference == 0 && sa->mechanism == 0
if (sa->reference == 0 && sa->mechanism == 0
&& sa->operations == 0 && sa->algo_ref == 0)
break;

View File

@ -1708,7 +1708,7 @@ static void list_info(void)
for (i = 0; i < SC_MAX_SUPPORTED_ALGORITHMS; i++) {
struct sc_supported_algo_info * sa = &p15card->tokeninfo->supported_algos[i];
if (sa->reference == 0 && sa->reference == 0 && sa->mechanism == 0
if (sa->reference == 0 && sa->mechanism == 0
&& sa->operations == 0 && sa->algo_ref == 0)
break;
printf("\t\t sc_supported_algo_info[%d]:\n", i);