X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Frfid_reader_cm5121_openct.c;h=801f0767fd191eedbf9f61297835533f353c4852;hb=65eef7a9742097179ea52341130424b2f3139a55;hp=9d9663846d08799cab67f3d7e2a8d47c63df49bd;hpb=05c7e304271bcf88901da3782fcd3f28a0c7c9cf;p=librfid diff --git a/src/rfid_reader_cm5121_openct.c b/src/rfid_reader_cm5121_openct.c index 9d96638..801f076 100644 --- a/src/rfid_reader_cm5121_openct.c +++ b/src/rfid_reader_cm5121_openct.c @@ -2,7 +2,7 @@ #include -#include +#include #include /* FIXME: get rid of this global crap. In fact this needs to become part of @@ -39,18 +39,13 @@ int cm5121_source_init(struct rfid_asic_transport_handle *rath) if (!h) return -1; - printf("acquiring card lock\n"); rc = ct_card_lock(h, slot, IFD_LOCK_EXCLUSIVE, &lock); - if (rc < 0) { - fprintf(stderr, "error, no card lock\n"); + if (rc < 0) return -1; - } rc = ct_card_reset(h, slot, atr, sizeof(atr)); - if (rc < 0) { - fprintf(stderr, "error, can't reset virtual card\n"); + if (rc < 0) return -1; - } rath->data = h;