Skip to contentSkip to conversation

media/video: minor have assigned value twice

PATCH New figo.zhang 1 participant 1 message May 18, 2009 Media (V4L/DVB)

lore
Share & tools
lore

figo.zhang

author
#0 lore raw

PATCH 1/1 media/video: minor have assigned value twice

The variable minor have assigned value twice, the first time is in the initial "video_device"data struct in those drivers,pls see saa7134-video.c,line 2503.

---

 drivers/media/video/bt8xx/bttv-driver.c    |    1 -
 drivers/media/video/cx23885/cx23885-417.c  |    1 -
 drivers/media/video/cx88/cx88-core.c       |    1 -
 drivers/media/video/saa7134/saa7134-core.c |    1 -
 4 files changed, 0 insertions(+), 4 deletions(-)
drivers/media/video/bt8xx/bttv-driver.c +0 -1
index 23b7499..539ae45 100644
@@ -4166,7 +4166,6 @@ static struct video_device *vdev_init(struct bttv *btv,
 	if (NULL == vfd)
 		return NULL;
 	*vfd = *template;
-	vfd->minor   = -1;
 	vfd->v4l2_dev = &btv->c.v4l2_dev;
 	vfd->release = video_device_release;
 	vfd->debug   = bttv_debug;
drivers/media/video/cx23885/cx23885-417.c +0 -1
index 6f5df90..2943bfd 100644
@@ -1742,7 +1742,6 @@ static struct video_device *cx23885_video_dev_alloc(
 	if (NULL == vfd)
 		return NULL;
 	*vfd = *template;
-	vfd->minor   = -1;
 	snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name,
 		type, cx23885_boards[tsport->dev->board].name);
 	vfd->parent  = &pci->dev;
drivers/media/video/cx88/cx88-core.c +0 -1
index 0e149b2..b4049de 100644
@@ -1010,7 +1010,6 @@ struct video_device *cx88_vdev_init(struct cx88_core *core,
 	if (NULL == vfd)
 		return NULL;
 	*vfd = *template;
-	vfd->minor   = -1;
 	vfd->v4l2_dev = &core->v4l2_dev;
 	vfd->parent = &pci->dev;
 	vfd->release = video_device_release;
drivers/media/video/saa7134/saa7134-core.c +0 -1
index 2def6fe..37b1452 100644
@@ -775,7 +775,6 @@ static struct video_device *vdev_init(struct saa7134_dev *dev,
 	if (NULL == vfd)
 		return NULL;
 	*vfd = *template;
-	vfd->minor   = -1;
 	vfd->v4l2_dev  = &dev->v4l2_dev;
 	vfd->release = video_device_release;
 	vfd->debug   = video_debug;