belpic: Remove unused variable
Thanks clang /src/libopensc/card-belpic.c:230:7: warning: Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r' [clang-analyzer-deadcode.DeadStores] if((r = get_carddata(card, carddata, sizeof(carddata))) < 0) { ^ /src/libopensc/card-belpic.c:230:7: note: Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r'
This commit is contained in:
parent
3135fccdca
commit
d25009cde6
|
@ -215,7 +215,6 @@ static int belpic_match_card(sc_card_t *card)
|
|||
static int belpic_init(sc_card_t *card)
|
||||
{
|
||||
int key_size = 1024;
|
||||
int r;
|
||||
|
||||
sc_log(card->ctx, "Belpic V%s\n", BELPIC_VERSION);
|
||||
|
||||
|
@ -227,7 +226,7 @@ static int belpic_init(sc_card_t *card)
|
|||
u8 carddata[BELPIC_CARDDATA_RESP_LEN];
|
||||
memset(carddata, 0, sizeof(carddata));
|
||||
|
||||
if((r = get_carddata(card, carddata, sizeof(carddata))) < 0) {
|
||||
if(get_carddata(card, carddata, sizeof(carddata)) < 0) {
|
||||
return SC_ERROR_INVALID_CARD;
|
||||
}
|
||||
if (carddata[BELPIC_CARDDATA_OFF_APPLETVERS] >= 0x17) {
|
||||
|
|
Loading…
Reference in New Issue