[fprint] [PATCH vfs101] Logical conjunction always evaluates to false.
Carlos Olmedo Escobar
carlos.olmedo.e at gmail.com
Fri Feb 6 08:22:16 PST 2015
Signed-off-by: Carlos Olmedo Escobar <carlos.olmedo.e at gmail.com>
---
libfprint/drivers/vfs101.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libfprint/drivers/vfs101.c b/libfprint/drivers/vfs101.c
index db0b06e..84624eb 100644
--- a/libfprint/drivers/vfs101.c
+++ b/libfprint/drivers/vfs101.c
@@ -186,7 +186,7 @@ static int result_codes[2][RESULT_COUNT] =
static int result_code(struct fp_img_dev *dev, int result)
{
/* Check result value */
- if (result < 0 && result >= RESULT_COUNT)
+ if (result < 0 || result >= RESULT_COUNT)
return result;
/* Return result code */
--
2.1.4
More information about the fprint
mailing list