vfs101: Logical conjunction always evaluates to false.
This commit is contained in:
parent
9f408bf51b
commit
45fb6d7908
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ static int result_codes[2][RESULT_COUNT] =
|
||||||
static int result_code(struct fp_img_dev *dev, int result)
|
static int result_code(struct fp_img_dev *dev, int result)
|
||||||
{
|
{
|
||||||
/* Check result value */
|
/* Check result value */
|
||||||
if (result < 0 && result >= RESULT_COUNT)
|
if (result < 0 || result >= RESULT_COUNT)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
/* Return result code */
|
/* Return result code */
|
||||||
|
|
Loading…
Reference in a new issue