aboutsummaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-11-02 19:48:28 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-11-02 19:49:22 -0700
commitde1d232c0d47a2da0767cee66c0ad5f02c9b6ca9 (patch)
treec0a43401947a4c8f3446ff6c33b334e3cfae84cf /binding
parent15944be08634f8eeab9c52022f15e0a6a70ff82b (diff)
Revert "binding: nfc: return error code in init() function"
This reverts commit 1cb99d7d2a7ecd26a9ddf54c99440416a22e0dc4. This change is actually needed to stop a systemd service restart loop if no adapters are present. Change-Id: I56da0ddf2a00b9df12b2e78719745c2823b66588 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-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)