vfs101: Logical conjunction always evaluates to false.

This commit is contained in:
Carlos Olmedo Escobar 2015-02-06 17:22:16 +01:00 committed by Bastien Nocera
parent 9f408bf51b
commit 45fb6d7908

View file

@ -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 */