Commit cb4f6818 authored by Peter Senna Tschudin's avatar Peter Senna Tschudin Committed by Mauro Carvalho Chehab

[media] saa7146: Variable set but not used

In function fops_open variable type was set but not used. Tested by compilation only.
Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Acked-by: default avatarMichael Hunold <michael@mihu.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 87edb566
...@@ -198,7 +198,6 @@ static int fops_open(struct file *file) ...@@ -198,7 +198,6 @@ static int fops_open(struct file *file)
struct saa7146_dev *dev = video_drvdata(file); struct saa7146_dev *dev = video_drvdata(file);
struct saa7146_fh *fh = NULL; struct saa7146_fh *fh = NULL;
int result = 0; int result = 0;
enum v4l2_buf_type type;
DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev)); DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev));
...@@ -207,10 +206,6 @@ static int fops_open(struct file *file) ...@@ -207,10 +206,6 @@ static int fops_open(struct file *file)
DEB_D("using: %p\n", dev); DEB_D("using: %p\n", dev);
type = vdev->vfl_type == VFL_TYPE_GRABBER
? V4L2_BUF_TYPE_VIDEO_CAPTURE
: V4L2_BUF_TYPE_VBI_CAPTURE;
/* check if an extension is registered */ /* check if an extension is registered */
if( NULL == dev->ext ) { if( NULL == dev->ext ) {
DEB_S("no extension registered for this device\n"); DEB_S("no extension registered for this device\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