summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-02-25 12:32:11 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2019-02-25 12:44:46 +0200
commit1cb1ade0f477cfe5dffdf6b5ca3622df147f8c43 (patch)
treef001ca8e6d5d9fd9ab71a3eae3860d53f1e40344
parent54d90ba88f60fef57c46b713bd48cbd9e392b544 (diff)
binding: nfc: fix build warnings
Fix warnings due to may be unused artifacts. Fix whitespace. Change-Id: Ibeef05406887d72414a3df7da71197e80c2f9ceb AGL-Bug: SPEC-2212 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
-rw-r--r--binding/afm-nfc-binding.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/binding/afm-nfc-binding.c b/binding/afm-nfc-binding.c
index b869a2f..5b046f2 100644
--- a/binding/afm-nfc-binding.c
+++ b/binding/afm-nfc-binding.c
@@ -105,8 +105,6 @@ static void adapter_added(const char *aname, void *ptr)
static void adapter_removed(const char *aname, void *ptr)
{
nfc_binding_data *data = ptr;
- neardal_adapter*adapter;
- int ret;
if (!data || !data->adapter)
return;
@@ -292,7 +290,7 @@ static void install_tag_callbacks(void *usrptr)
AFB_API_DEBUG(afbBindingV3root, "NFC tag callbacks registered\n");
}
-static void remove_adapter_callbacks(void *usrptr)
+static void __attribute__((unused)) remove_adapter_callbacks(void *usrptr)
{
neardal_set_cb_adapter_added(NULL, usrptr);
neardal_set_cb_adapter_removed(NULL, usrptr);
@@ -474,9 +472,9 @@ static void unsubscribe(afb_req_t request)
}
static const afb_verb_t binding_verbs[] = {
- { .verb = "subscribe", .callback = subscribe,
+ { .verb = "subscribe", .callback = subscribe,
.info = "Subscribe to NFC events" },
- { .verb = "unsubscribe", .callback = unsubscribe,
+ { .verb = "unsubscribe", .callback = unsubscribe,
.info = "Unsubscribe to NFC events" },
{ }
};