V4L/DVB (11853): minor have assigned value twice
authorfigo.zhang <figo.zhang@kolorific.com>
Mon, 18 May 2009 02:31:55 +0000 (23:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:13 +0000 (18:21 -0300)
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>
drivers/media/video/bt8xx/bttv-driver.c
drivers/media/video/cx23885/cx23885-417.c
drivers/media/video/cx88/cx88-core.c
drivers/media/video/saa7134/saa7134-core.c

index 23b7499b31852d5aa7f0b3f52c5f5c2f37b481f6..539ae45bebd9aacf11229b507738a4ce565591bf 100644 (file)
@@ -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;
index 6f5df90af93ef2a89f2c4bc48bf0c64640b89dea..2943bfd32a94a4b74acb19d6a9076abd7e1d3388 100644 (file)
@@ -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;
index 0e149b22bd194b14943fa30799ec143e36270343..b4049de071a2c1be552c1741867086efeb0eb161 100644 (file)
@@ -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;
index 2def6fec814bb31adaf6e2e32d476b13bdeb6107..37b14526a09352689b88a588a43b4b6100338dbd 100644 (file)
@@ -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;