lib: Fix incorrect guard in FP_IMG_DEV()

The check for the DRIVER_IMAGING type was reversed.
This commit is contained in:
Bastien Nocera 2018-09-26 15:07:48 +02:00
parent 10ae8ffb55
commit 946388d1e9

View file

@ -56,7 +56,7 @@ FP_IMG_DEV(struct fp_dev *dev)
{ {
g_return_val_if_fail (dev, NULL); g_return_val_if_fail (dev, NULL);
g_return_val_if_fail (dev->drv, NULL); g_return_val_if_fail (dev->drv, NULL);
g_return_val_if_fail (dev->drv->type != DRIVER_IMAGING, NULL); g_return_val_if_fail (dev->drv->type == DRIVER_IMAGING, NULL);
return dev->img_dev; return dev->img_dev;
} }