提交 b4a7113f 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 9c2ccc32
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册