mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-11 09:06:17 +00:00
acr122s_scan should not return -1 if of type size_t
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user