lib: Fix incorrect guard in FP_IMG_DEV()
The check for the DRIVER_IMAGING type was reversed.
This commit is contained in:
parent
10ae8ffb55
commit
946388d1e9
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ FP_IMG_DEV(struct fp_dev *dev)
|
|||
{
|
||||
g_return_val_if_fail (dev, 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue