提交 0d3732fb 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

media: ti: davinci: vpbe_display.c: return 0 instead of 'ret'.

Since 'ret' is known to be 0, just return '0'. This fixes a smatch warning:

vpbe_display.c:1152 vpbe_display_open() warn: missing error code? 'err'
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
上级 22237077
...@@ -1149,7 +1149,7 @@ static int vpbe_display_open(struct file *file) ...@@ -1149,7 +1149,7 @@ static int vpbe_display_open(struct file *file)
/* leaving if layer is already initialized */ /* leaving if layer is already initialized */
if (!v4l2_fh_is_singular_file(file)) if (!v4l2_fh_is_singular_file(file))
return err; return 0;
if (!layer->usrs) { if (!layer->usrs) {
if (mutex_lock_interruptible(&layer->opslock)) if (mutex_lock_interruptible(&layer->opslock))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册