Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ecdf92d authored by figo.zhang's avatar figo.zhang Committed by Mauro Carvalho Chehab
Browse files

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: default avatarFigo.zhang <figo.zhang@kolorific.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 4a567394
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -4166,7 +4166,6 @@ static struct video_device *vdev_init(struct bttv *btv,
	if (NULL == vfd)
	if (NULL == vfd)
		return NULL;
		return NULL;
	*vfd = *template;
	*vfd = *template;
	vfd->minor   = -1;
	vfd->v4l2_dev = &btv->c.v4l2_dev;
	vfd->v4l2_dev = &btv->c.v4l2_dev;
	vfd->release = video_device_release;
	vfd->release = video_device_release;
	vfd->debug   = bttv_debug;
	vfd->debug   = bttv_debug;
+0 −1
Original line number Original line Diff line number Diff line
@@ -1742,7 +1742,6 @@ static struct video_device *cx23885_video_dev_alloc(
	if (NULL == vfd)
	if (NULL == vfd)
		return NULL;
		return NULL;
	*vfd = *template;
	*vfd = *template;
	vfd->minor   = -1;
	snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name,
	snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name,
		type, cx23885_boards[tsport->dev->board].name);
		type, cx23885_boards[tsport->dev->board].name);
	vfd->parent  = &pci->dev;
	vfd->parent  = &pci->dev;
+0 −1
Original line number Original line Diff line number Diff line
@@ -1010,7 +1010,6 @@ struct video_device *cx88_vdev_init(struct cx88_core *core,
	if (NULL == vfd)
	if (NULL == vfd)
		return NULL;
		return NULL;
	*vfd = *template;
	*vfd = *template;
	vfd->minor   = -1;
	vfd->v4l2_dev = &core->v4l2_dev;
	vfd->v4l2_dev = &core->v4l2_dev;
	vfd->parent = &pci->dev;
	vfd->parent = &pci->dev;
	vfd->release = video_device_release;
	vfd->release = video_device_release;
+0 −1
Original line number Original line Diff line number Diff line
@@ -775,7 +775,6 @@ static struct video_device *vdev_init(struct saa7134_dev *dev,
	if (NULL == vfd)
	if (NULL == vfd)
		return NULL;
		return NULL;
	*vfd = *template;
	*vfd = *template;
	vfd->minor   = -1;
	vfd->v4l2_dev  = &dev->v4l2_dev;
	vfd->v4l2_dev  = &dev->v4l2_dev;
	vfd->release = video_device_release;
	vfd->release = video_device_release;
	vfd->debug   = video_debug;
	vfd->debug   = video_debug;