aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfigo.zhang <figo.zhang@kolorific.com>2009-05-17 22:31:55 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:21:13 -0400
commit6ecdf92d211fb37a905fce5d0a8668c831764abc (patch)
tree868880a4d0e4a36867546db8ba51117b73ee1a0b
parent4a567394dce57e8a2329f0a1123b951b0f070d39 (diff)
V4L/DVB (11853): 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. --- Signed-off-by: Figo.zhang <figo.zhang@kolorific.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c1
-rw-r--r--drivers/media/video/cx23885/cx23885-417.c1
-rw-r--r--drivers/media/video/cx88/cx88-core.c1
-rw-r--r--drivers/media/video/saa7134/saa7134-core.c1
4 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index 23b7499b3185..539ae45bebd9 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -4166,7 +4166,6 @@ static struct video_device *vdev_init(struct bttv *btv,
4166 if (NULL == vfd) 4166 if (NULL == vfd)
4167 return NULL; 4167 return NULL;
4168 *vfd = *template; 4168 *vfd = *template;
4169 vfd->minor = -1;
4170 vfd->v4l2_dev = &btv->c.v4l2_dev; 4169 vfd->v4l2_dev = &btv->c.v4l2_dev;
4171 vfd->release = video_device_release; 4170 vfd->release = video_device_release;
4172 vfd->debug = bttv_debug; 4171 vfd->debug = bttv_debug;
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c
index 6f5df90af93e..2943bfd32a94 100644
--- a/drivers/media/video/cx23885/cx23885-417.c
+++ b/drivers/media/video/cx23885/cx23885-417.c
@@ -1742,7 +1742,6 @@ static struct video_device *cx23885_video_dev_alloc(
1742 if (NULL == vfd) 1742 if (NULL == vfd)
1743 return NULL; 1743 return NULL;
1744 *vfd = *template; 1744 *vfd = *template;
1745 vfd->minor = -1;
1746 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, 1745 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name,
1747 type, cx23885_boards[tsport->dev->board].name); 1746 type, cx23885_boards[tsport->dev->board].name);
1748 vfd->parent = &pci->dev; 1747 vfd->parent = &pci->dev;
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c
index 0e149b22bd19..b4049de071a2 100644
--- a/drivers/media/video/cx88/cx88-core.c
+++ b/drivers/media/video/cx88/cx88-core.c
@@ -1010,7 +1010,6 @@ struct video_device *cx88_vdev_init(struct cx88_core *core,
1010 if (NULL == vfd) 1010 if (NULL == vfd)
1011 return NULL; 1011 return NULL;
1012 *vfd = *template; 1012 *vfd = *template;
1013 vfd->minor = -1;
1014 vfd->v4l2_dev = &core->v4l2_dev; 1013 vfd->v4l2_dev = &core->v4l2_dev;
1015 vfd->parent = &pci->dev; 1014 vfd->parent = &pci->dev;
1016 vfd->release = video_device_release; 1015 vfd->release = video_device_release;
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
index 2def6fec814b..37b14526a093 100644
--- a/drivers/media/video/saa7134/saa7134-core.c
+++ b/drivers/media/video/saa7134/saa7134-core.c
@@ -775,7 +775,6 @@ static struct video_device *vdev_init(struct saa7134_dev *dev,
775 if (NULL == vfd) 775 if (NULL == vfd)
776 return NULL; 776 return NULL;
777 *vfd = *template; 777 *vfd = *template;
778 vfd->minor = -1;
779 vfd->v4l2_dev = &dev->v4l2_dev; 778 vfd->v4l2_dev = &dev->v4l2_dev;
780 vfd->release = video_device_release; 779 vfd->release = video_device_release;
781 vfd->debug = video_debug; 780 vfd->debug = video_debug;