提交 26ac851b 编写于 作者: K kbuild test robot 提交者: Greg Kroah-Hartman

staging/atomisp: fix returnvar.cocci warnings

drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c:161:5-8: Unneeded variable: "ret". Return "0" on line 163

 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci
Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e407377f
...@@ -158,9 +158,7 @@ uint16_t atomisp_subdev_source_pad(struct video_device * vdev) ...@@ -158,9 +158,7 @@ uint16_t atomisp_subdev_source_pad(struct video_device * vdev)
static long isp_subdev_ioctl(struct v4l2_subdev *sd, static long isp_subdev_ioctl(struct v4l2_subdev *sd,
unsigned int cmd, void *arg) unsigned int cmd, void *arg)
{ {
int ret = 0; return 0;
return ret;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册