media: wl128x: Fix some error handling in fmc_prepare()

The st_register() returns have changed over time, but these days it
never returns -1.  We should just be checking for any negative error
codes.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Dan Carpenter 2019-03-28 10:41:38 -04:00 committed by Mauro Carvalho Chehab
parent 9c2ccc324b
commit b4a7113f84
1 changed files with 1 additions and 1 deletions

View File

@ -1524,7 +1524,7 @@ int fmc_prepare(struct fmdev *fmdev)
}
ret = 0;
} else if (ret == -1) {
} else if (ret < 0) {
fmerr("st_register failed %d\n", ret);
return -EAGAIN;
}