From 9240770ab18fd843f402d3b5bb0010f9d1a4b596 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 19 Sep 2013 23:39:03 +0200 Subject: [PATCH] acr122s_scan should not return -1 if of type size_t --- libnfc/drivers/acr122s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnfc/drivers/acr122s.c b/libnfc/drivers/acr122s.c index e04f0f8..6fcbf8e 100644 --- a/libnfc/drivers/acr122s.c +++ b/libnfc/drivers/acr122s.c @@ -440,7 +440,7 @@ acr122s_scan(const nfc_context *context, nfc_connstring connstrings[], const siz free((void *)acPort); } free(acPorts); - return -1; + return 0; } pnd->driver = &acr122s_driver; @@ -454,7 +454,7 @@ acr122s_scan(const nfc_context *context, nfc_connstring connstrings[], const siz free((void *)acPort); } free(acPorts); - return -1; + return 0; } DRIVER_DATA(pnd)->port = sp; DRIVER_DATA(pnd)->seq = 0;