From 92b0bf9a5f573637b6ec12d105aed8c14b6d890d Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 5 Jul 2011 18:24:32 +0200 Subject: [PATCH] nfctype1: Slight coding style fixes --- plugins/nfctype1.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/nfctype1.c b/plugins/nfctype1.c index d9c2954..788aaef 100755 --- a/plugins/nfctype1.c +++ b/plugins/nfctype1.c @@ -40,7 +40,7 @@ #include #include -#define CMD_READ_ALL 0x00 // Read all bytes (incl: HR) +#define CMD_READ_ALL 0x00 /* Read all bytes (incl: HR) */ #define OFFSET_STATUS_CMD 0x00 #define OFFSET_HEADER_ROM 0x01 @@ -135,9 +135,9 @@ static int meta_recv(uint8_t *resp, int length, void *data) err = near_tlv_parse(t1_tag->tag, t1_tag->cb, cc + LEN_CC_BYTES, TAG_T1_DATA_LENGTH(cc)); near_adapter_disconnect(t1_tag->adapter_idx); - } - else + } else { err = -EOPNOTSUPP ; + } out: g_free(cookie); @@ -160,8 +160,8 @@ static int nfctype1_read_all(uint32_t adapter_idx, uint32_t target_idx, DBG(""); - t1_cmd.cmd = CMD_READ_ALL; /* Read ALL cmd give 124 bytes */ - t1_cmd.offset = 0; /* NA */ + t1_cmd.cmd = CMD_READ_ALL; /* Read ALL cmd give 124 bytes */ + t1_cmd.offset = 0; /* NA */ cookie = g_try_malloc0(sizeof(struct recv_cookie)); cookie->adapter_idx = adapter_idx; -- 2.7.4