cardos: Avoid always-true condition

Comparison is always true because offset >= 1.

Thanks lgtm
This commit is contained in:
Jakub Jelen 2020-03-03 11:04:56 +01:00 committed by Frank Morgner
parent 15b1e93b51
commit e429fe03c5
1 changed files with 1 additions and 2 deletions

View File

@ -381,8 +381,7 @@ get_next_part:
q = sc_asn1_find_tag(card->ctx, p, tlen, 0x8a, &ilen);
if (q != NULL && ilen == 1) {
offset = (u8)ilen;
if (offset != 0)
goto get_next_part;
goto get_next_part;
}
len -= tlen + 2;
p += tlen;