[fprint] Minor fix
Patrick Marlier
patrick.marlier at gmail.com
Wed Jan 18 15:52:02 PST 2012
Hi,
This patch fixes a minor bug if there is no deactivate callback.
diff --git a/libfprint/imgdev.c b/libfprint/imgdev.c
index b365d74..14e41ae 100644
--- a/libfprint/imgdev.c
+++ b/libfprint/imgdev.c
@@ -370,7 +370,7 @@ static void dev_deactivate(struct fp_img_dev *imgdev)
struct fp_driver *drv = imgdev->dev->drv;
struct fp_img_driver *imgdrv = fpi_driver_to_img_driver(drv);
- if (!imgdrv->activate)
+ if (!imgdrv->deactivate)
return;
return imgdrv->deactivate(imgdev);
}
--
Patrick Marlier.
More information about the fprint
mailing list