Skip to contentSkip to conversation

saa7146: Variable set but not used

PATCH New Peter Senna Tschudin 1 participant 1 message Jun 9, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 saa7146: Variable set but not used

In function fops_open variable type was set but not used. Tested by compilation only.

---
 drivers/media/common/saa7146_fops.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/media/common/saa7146_fops.c +0 -5
index 7d42c11..0cdbd74 100644
@@ -198,7 +198,6 @@ static int fops_open(struct file *file)
 	struct saa7146_dev *dev = video_drvdata(file);
 	struct saa7146_fh *fh = NULL;
 	int result = 0;
-	enum v4l2_buf_type type;
 
 	DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev));
 
@@ -207,10 +206,6 @@ static int fops_open(struct file *file)
 
 	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 */
 	if( NULL == dev->ext ) {
 		DEB_S("no extension registered for this device\n");
Signature · 1 line
1.7.10.2