浏览代码

[media] davinci: just return 0 instead of using a var

Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.

Acked-by: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Mauro Carvalho Chehab 11 年之前
父节点
当前提交
b80cefb415
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/media/platform/davinci/vpfe_capture.c

+ 1 - 2
drivers/media/platform/davinci/vpfe_capture.c

@@ -943,12 +943,11 @@ static int vpfe_g_fmt_vid_cap(struct file *file, void *priv,
 				struct v4l2_format *fmt)
 				struct v4l2_format *fmt)
 {
 {
 	struct vpfe_device *vpfe_dev = video_drvdata(file);
 	struct vpfe_device *vpfe_dev = video_drvdata(file);
-	int ret = 0;
 
 
 	v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_g_fmt_vid_cap\n");
 	v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_g_fmt_vid_cap\n");
 	/* Fill in the information about format */
 	/* Fill in the information about format */
 	*fmt = vpfe_dev->fmt;
 	*fmt = vpfe_dev->fmt;
-	return ret;
+	return 0;
 }
 }
 
 
 static int vpfe_enum_fmt_vid_cap(struct file *file, void  *priv,
 static int vpfe_enum_fmt_vid_cap(struct file *file, void  *priv,