Commit 58594098 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: davinci_vpfe: vpfe_video: remove an unused var

as warned:

  drivers/staging/media/davinci_vpfe/vpfe_video.c: In function 'vpfe_streamon':
  drivers/staging/media/davinci_vpfe/vpfe_video.c:1471:31: warning: variable 'sdinfo' set but not used [-Wunused-but-set-variable]
    struct vpfe_ext_subdev_info *sdinfo;
                               ^~~~~~

While here, cleanup this kernel-doc warning:

  drivers/staging/media/davinci_vpfe/vpfe_video.c:225: warning: Function parameter or member 'pipe' not described in 'vpfe_video_validate_pipeline'
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 9d52210a
...@@ -214,7 +214,7 @@ int vpfe_video_is_pipe_ready(struct vpfe_pipeline *pipe) ...@@ -214,7 +214,7 @@ int vpfe_video_is_pipe_ready(struct vpfe_pipeline *pipe)
return 1; return 1;
} }
/** /*
* Validate a pipeline by checking both ends of all links for format * Validate a pipeline by checking both ends of all links for format
* discrepancies. * discrepancies.
* *
...@@ -1468,7 +1468,6 @@ static int vpfe_streamon(struct file *file, void *priv, ...@@ -1468,7 +1468,6 @@ static int vpfe_streamon(struct file *file, void *priv,
struct vpfe_device *vpfe_dev = video->vpfe_dev; struct vpfe_device *vpfe_dev = video->vpfe_dev;
struct vpfe_pipeline *pipe = &video->pipe; struct vpfe_pipeline *pipe = &video->pipe;
struct vpfe_fh *fh = file->private_data; struct vpfe_fh *fh = file->private_data;
struct vpfe_ext_subdev_info *sdinfo;
int ret = -EINVAL; int ret = -EINVAL;
v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_streamon\n"); v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_streamon\n");
...@@ -1483,7 +1482,6 @@ static int vpfe_streamon(struct file *file, void *priv, ...@@ -1483,7 +1482,6 @@ static int vpfe_streamon(struct file *file, void *priv,
v4l2_err(&vpfe_dev->v4l2_dev, "fh->io_allowed\n"); v4l2_err(&vpfe_dev->v4l2_dev, "fh->io_allowed\n");
return -EACCES; return -EACCES;
} }
sdinfo = video->current_ext_subdev;
/* If buffer queue is empty, return error */ /* If buffer queue is empty, return error */
if (list_empty(&video->buffer_queue.queued_list)) { if (list_empty(&video->buffer_queue.queued_list)) {
v4l2_err(&vpfe_dev->v4l2_dev, "buffer queue is empty\n"); v4l2_err(&vpfe_dev->v4l2_dev, "buffer queue is empty\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment