Commit f7887f74 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: most: video: fix build warnings

Commit 7d7cdb4f ("staging: most: video: remove debugging code") ended up
adding a bunch of build warnings about unused variables.  Fix that up by
removing those variables as we don't need them anymore.

Cc: Abdun Nihaal <abdun.nihaal@gmail.com>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: 7d7cdb4f ("staging: most: video: remove debugging code")
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f566194
...@@ -261,9 +261,6 @@ static int vidioc_querycap(struct file *file, void *priv, ...@@ -261,9 +261,6 @@ static int vidioc_querycap(struct file *file, void *priv,
static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_fmtdesc *f) struct v4l2_fmtdesc *f)
{ {
struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev;
if (f->index) if (f->index)
return -EINVAL; return -EINVAL;
...@@ -278,9 +275,6 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, ...@@ -278,9 +275,6 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_format *f) struct v4l2_format *f)
{ {
struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev;
comp_set_format_struct(f); comp_set_format_struct(f);
return 0; return 0;
} }
...@@ -305,9 +299,6 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv, ...@@ -305,9 +299,6 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm)
{ {
struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev;
*norm = V4L2_STD_UNKNOWN; *norm = V4L2_STD_UNKNOWN;
return 0; return 0;
} }
......
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