aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--binding/afm-nfc-binding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/afm-nfc-binding.c b/binding/afm-nfc-binding.c
index d5c8d0b..70a8625 100644
--- a/binding/afm-nfc-binding.c
+++ b/binding/afm-nfc-binding.c
@@ -247,7 +247,7 @@ static int init(afb_api_t api)
pthread_t thread_id;
nfc_binding_data *data = get_libnfc_instance();
char **adapters = NULL;
- int num_adapters, ret = 0;
+ int num_adapters, ret;
presence_event = afb_daemon_make_event("presence");
@@ -277,7 +277,7 @@ static int init(afb_api_t api)
neardal_free_array(&adapters);
- return ret;
+ return 0;
}
static void subscribe(afb_req_t request)