From 68879ba25514d580e7235f2cf6247b80b1b98fad Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 30 Sep 2010 08:14:21 +0000 Subject: [PATCH] Fix bad indent. Update issue 84 Status: Reopened Currently, indent trucate long line which make the code almost unreadable. --- libnfc/drivers/acr122.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libnfc/drivers/acr122.c b/libnfc/drivers/acr122.c index 5ee0925..b0d3ae7 100644 --- a/libnfc/drivers/acr122.c +++ b/libnfc/drivers/acr122.c @@ -204,12 +204,9 @@ acr122_connect (const nfc_device_desc_t * pndd) if (!(pscc = acr122_get_scardcontext ())) return NULL; // Test if we were able to connect to the "emulator" card - if (SCardConnect - (*pscc, pndd->acDevice, SCARD_SHARE_EXCLUSIVE, SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, &(as.hCard), - (void *) &(as.ioCard.dwProtocol)) != SCARD_S_SUCCESS) { + if (SCardConnect (*pscc, pndd->acDevice, SCARD_SHARE_EXCLUSIVE, SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, &(as.hCard), (void *) &(as.ioCard.dwProtocol)) != SCARD_S_SUCCESS) { // Connect to ACR122 firmware version >2.0 - if (SCardConnect (*pscc, pndd->acDevice, SCARD_SHARE_DIRECT, 0, &(as.hCard), (void *) &(as.ioCard.dwProtocol)) != - SCARD_S_SUCCESS) { + if (SCardConnect (*pscc, pndd->acDevice, SCARD_SHARE_DIRECT, 0, &(as.hCard), (void *) &(as.ioCard.dwProtocol)) != SCARD_S_SUCCESS) { // We can not connect to this device. DBG ("%s", "PCSC connect failed"); return NULL;