From 84b97ea15b519ac26af3a71e2a4d929cb140f0ff Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Fri, 26 Oct 2012 16:44:37 +0300 Subject: [PATCH] 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 --- libfprint/sync.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libfprint/sync.c b/libfprint/sync.c index 440b725..ca2f302 100644 --- a/libfprint/sync.c +++ b/libfprint/sync.c @@ -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, struct fp_print_data *enrolled_print, struct fp_img **img) { - struct fp_driver *drv = dev->drv; struct sync_verify_data *vdata; gboolean stopped = FALSE; int r; @@ -335,7 +334,7 @@ API_EXPORTED int fp_verify_finger_img(struct fp_dev *dev, 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)); r = fp_async_verify_start(dev, enrolled_print, sync_verify_cb, vdata); 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_img **img) { - struct fp_driver *drv = dev->drv; gboolean stopped = FALSE; struct sync_identify_data *idata = g_malloc0(sizeof(struct sync_identify_data)); 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); if (r < 0) {