lib: Fix warning when debug logs are disabled
Fix warning in sync.c when debug logs are not enabled https://bugs.freedesktop.org/show_bug.cgi?id=56439
This commit is contained in:
parent
8f98743857
commit
84b97ea15b
1 changed files with 2 additions and 4 deletions
|
@ -320,7 +320,6 @@ static void verify_stop_cb(struct fp_dev *dev, void *user_data)
|
||||||
API_EXPORTED int fp_verify_finger_img(struct fp_dev *dev,
|
API_EXPORTED int fp_verify_finger_img(struct fp_dev *dev,
|
||||||
struct fp_print_data *enrolled_print, struct fp_img **img)
|
struct fp_print_data *enrolled_print, struct fp_img **img)
|
||||||
{
|
{
|
||||||
struct fp_driver *drv = dev->drv;
|
|
||||||
struct sync_verify_data *vdata;
|
struct sync_verify_data *vdata;
|
||||||
gboolean stopped = FALSE;
|
gboolean stopped = FALSE;
|
||||||
int r;
|
int r;
|
||||||
|
@ -335,7 +334,7 @@ API_EXPORTED int fp_verify_finger_img(struct fp_dev *dev,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
fp_dbg("to be handled by %s", drv->name);
|
fp_dbg("to be handled by %s", dev->drv->name);
|
||||||
vdata = g_malloc0(sizeof(struct sync_verify_data));
|
vdata = g_malloc0(sizeof(struct sync_verify_data));
|
||||||
r = fp_async_verify_start(dev, enrolled_print, sync_verify_cb, vdata);
|
r = fp_async_verify_start(dev, enrolled_print, sync_verify_cb, vdata);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
@ -452,13 +451,12 @@ API_EXPORTED int fp_identify_finger_img(struct fp_dev *dev,
|
||||||
struct fp_print_data **print_gallery, size_t *match_offset,
|
struct fp_print_data **print_gallery, size_t *match_offset,
|
||||||
struct fp_img **img)
|
struct fp_img **img)
|
||||||
{
|
{
|
||||||
struct fp_driver *drv = dev->drv;
|
|
||||||
gboolean stopped = FALSE;
|
gboolean stopped = FALSE;
|
||||||
struct sync_identify_data *idata
|
struct sync_identify_data *idata
|
||||||
= g_malloc0(sizeof(struct sync_identify_data));
|
= g_malloc0(sizeof(struct sync_identify_data));
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
fp_dbg("to be handled by %s", drv->name);
|
fp_dbg("to be handled by %s", dev->drv->name);
|
||||||
|
|
||||||
r = fp_async_identify_start(dev, print_gallery, sync_identify_cb, idata);
|
r = fp_async_identify_start(dev, print_gallery, sync_identify_cb, idata);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
|
Loading…
Reference in a new issue