mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
vfs101: Logical conjunction always evaluates to false.
This commit is contained in:
committed by
Bastien Nocera
parent
9f408bf51b
commit
45fb6d7908
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user