acr122s_scan should not return -1 if of type size_t
This commit is contained in:
parent
3d040d73f3
commit
9240770ab1
1 changed files with 2 additions and 2 deletions
|
@ -440,7 +440,7 @@ acr122s_scan(const nfc_context *context, nfc_connstring connstrings[], const siz
|
||||||
free((void *)acPort);
|
free((void *)acPort);
|
||||||
}
|
}
|
||||||
free(acPorts);
|
free(acPorts);
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
pnd->driver = &acr122s_driver;
|
pnd->driver = &acr122s_driver;
|
||||||
|
@ -454,7 +454,7 @@ acr122s_scan(const nfc_context *context, nfc_connstring connstrings[], const siz
|
||||||
free((void *)acPort);
|
free((void *)acPort);
|
||||||
}
|
}
|
||||||
free(acPorts);
|
free(acPorts);
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
DRIVER_DATA(pnd)->port = sp;
|
DRIVER_DATA(pnd)->port = sp;
|
||||||
DRIVER_DATA(pnd)->seq = 0;
|
DRIVER_DATA(pnd)->seq = 0;
|
||||||
|
|
Loading…
Reference in a new issue