mirror of https://gitee.com/openkylin/linux.git
media: mtk-vcodec: vdec_vp9_if.c: fix comparison to bool
Fix the following coccinelle report: drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c:963:6-31: WARNING: Comparison to bool Found using - Coccinelle (http://coccinelle.lip6.fr) Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
7f98818704
commit
fd1a97a23f
|
@ -960,7 +960,7 @@ static int vdec_vp9_decode(void *h_vdec, struct mtk_vcodec_mem *bs,
|
||||||
goto DECODE_ERROR;
|
goto DECODE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vp9_decode_end_proc(inst) != true) {
|
if (!vp9_decode_end_proc(inst)) {
|
||||||
mtk_vcodec_err(inst, "vp9_decode_end_proc");
|
mtk_vcodec_err(inst, "vp9_decode_end_proc");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto DECODE_ERROR;
|
goto DECODE_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue